mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
manifest-tool: init at v2.0.6
This commit is contained in:
parent
e4a295ddb8
commit
e3374aff8a
46
pkgs/development/tools/manifest-tool/default.nix
Normal file
46
pkgs/development/tools/manifest-tool/default.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, stdenv
|
||||
, testers
|
||||
, manifest-tool
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "manifest-tool";
|
||||
version = "2.0.6";
|
||||
gitCommit = "2ed9312726765567a84f2acc44a0c8a6e50f4b7a";
|
||||
modRoot = "v2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "estesp";
|
||||
repo = "manifest-tool";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oopk++IdNF6msxOszT0fKxQABgWKbaQZ2aNH9chqWU0=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
git -C $out rev-parse HEAD > $out/.git-revision
|
||||
rm -rf $out/.git
|
||||
'';
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
nativeBuildInputs = [ git ];
|
||||
|
||||
preConfigure = ''
|
||||
ldflags="-X main.gitCommit=$(cat .git-revision)"
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = manifest-tool;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command line tool to create and query container image manifest list/indexes";
|
||||
homepage = "https://github.com/estesp/manifest-tool";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ tricktron ];
|
||||
};
|
||||
}
|
@ -8893,6 +8893,8 @@ with pkgs;
|
||||
|
||||
mani = callPackage ../development/tools/mani { };
|
||||
|
||||
manifest-tool = callPackage ../development/tools/manifest-tool { };
|
||||
|
||||
mask = callPackage ../development/tools/mask { };
|
||||
|
||||
mathpix-snipping-tool = callPackage ../tools/misc/mathpix-snipping-tool { };
|
||||
|
Loading…
Reference in New Issue
Block a user