11 pname = "manifest-tool";
15 src = fetchFromGitHub {
17 repo = "manifest-tool";
19 hash = "sha256-/u60hi/KnPVWlNh6nxjXpH0ct5PLVE44deGxhzbayD0=";
22 git -C $out rev-parse HEAD > $out/.git-revision
29 nativeBuildInputs = [ git ];
34 "-X main.version=${version}"
35 ] ++ lib.optionals stdenv.hostPlatform.isStatic [
42 export ldflags+=" -X main.gitCommit=$(cat .git-revision)"
45 tags = lib.optionals stdenv.hostPlatform.isStatic [
52 passthru.tests.version = testers.testVersion {
53 package = manifest-tool;
57 description = "Command line tool to create and query container image manifest list/indexes";
58 mainProgram = "manifest-tool";
59 homepage = "https://github.com/estesp/manifest-tool";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ tricktron ];