From 9a486b07bc8563f99a754c996687190e00000d1b Mon Sep 17 00:00:00 2001 From: squalus Date: Fri, 15 Mar 2024 12:28:08 -0700 Subject: [PATCH] mcap-cli: 0.0.38 -> 0.0.42 - update to 0.0.42 - changelog: https://github.com/foxglove/mcap/releases - add update script - add mainProgram meta attribute --- pkgs/by-name/mc/mcap-cli/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/mc/mcap-cli/package.nix b/pkgs/by-name/mc/mcap-cli/package.nix index 78f1b3bebc4e..81853d252efa 100644 --- a/pkgs/by-name/mc/mcap-cli/package.nix +++ b/pkgs/by-name/mc/mcap-cli/package.nix @@ -1,6 +1,7 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, nix-update-script +}: let - version = "0.0.38"; + version = "0.0.42"; in buildGoModule { @@ -12,7 +13,7 @@ buildGoModule { repo = "mcap"; owner = "foxglove"; rev = "releases/mcap-cli/v${version}"; - hash = "sha256-mwKWf0kJ3uMx1cLUac+AqXgQ1Af3tLDOCTFKgq8FtHE="; + hash = "sha256-9fjzMUMWn5j8AJJq+tK+Hq0o8d3HpacitJZ5CfLiaLw="; }; vendorHash = "sha256-Gl0zLBTWscKGtVOS6rPRL/r8KHYHpZwoUDbEyCL4Ijk="; @@ -34,11 +35,16 @@ buildGoModule { "-skip=TestCat|TestInfo" ]; + passthru = { + updateScript = nix-update-script { }; + }; + meta = with lib; { description = "MCAP CLI tool to inspect and fix MCAP files"; homepage = "https://github.com/foxglove/mcap"; license = with licenses; [ mit ]; maintainers = with maintainers; [ squalus therishidesai ]; + mainProgram = "mcap"; }; }