diff options
author | squalus <squalus@squalus.net> | 2024-01-09 20:00:38 -0800 |
---|---|---|
committer | a-n-n-a-l-e-e <150648636+a-n-n-a-l-e-e@users.noreply.github.com> | 2024-01-21 12:42:24 -0800 |
commit | 28c3be331231883592214c9169070a39b312b812 (patch) | |
tree | de7b68a73ecd70b245e0ef99b734637ca927d944 /pkgs/by-name/mc | |
parent | 02ce372b46613f0f2302fd9219c8b9c2aa697936 (diff) | |
download | nixlib-28c3be331231883592214c9169070a39b312b812.tar nixlib-28c3be331231883592214c9169070a39b312b812.tar.gz nixlib-28c3be331231883592214c9169070a39b312b812.tar.bz2 nixlib-28c3be331231883592214c9169070a39b312b812.tar.lz nixlib-28c3be331231883592214c9169070a39b312b812.tar.xz nixlib-28c3be331231883592214c9169070a39b312b812.tar.zst nixlib-28c3be331231883592214c9169070a39b312b812.zip |
mcap-cli: init at 0.0.38
Diffstat (limited to 'pkgs/by-name/mc')
-rw-r--r-- | pkgs/by-name/mc/mcap-cli/package.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/mc/mcap-cli/package.nix b/pkgs/by-name/mc/mcap-cli/package.nix new file mode 100644 index 000000000000..78f1b3bebc4e --- /dev/null +++ b/pkgs/by-name/mc/mcap-cli/package.nix @@ -0,0 +1,44 @@ +{ lib, buildGoModule, fetchFromGitHub }: +let + version = "0.0.38"; +in +buildGoModule { + + pname = "mcap-cli"; + + inherit version; + + src = fetchFromGitHub { + repo = "mcap"; + owner = "foxglove"; + rev = "releases/mcap-cli/v${version}"; + hash = "sha256-mwKWf0kJ3uMx1cLUac+AqXgQ1Af3tLDOCTFKgq8FtHE="; + }; + + vendorHash = "sha256-Gl0zLBTWscKGtVOS6rPRL/r8KHYHpZwoUDbEyCL4Ijk="; + + modRoot = "go/cli/mcap"; + + GOWORK="off"; + + # copy the local versions of the workspace modules + postConfigure = '' + chmod -R u+w vendor + rm -rf vendor/github.com/foxglove/mcap/go/{mcap,ros} + cp -r ../../{mcap,ros} vendor/github.com/foxglove/mcap/go + ''; + + checkFlags = [ + # requires git-lfs and network + # https://github.com/foxglove/mcap/issues/895 + "-skip=TestCat|TestInfo" + ]; + + 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 ]; + }; + +} |