1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 12:50:18 -04:00
nixpkgs/pkgs/by-name/gi/gittuf/package.nix
2024-10-05 05:15:29 +00:00

32 lines
919 B
Nix

{ lib, fetchFromGitHub, buildGoModule, git, openssh }:
buildGoModule rec {
pname = "gittuf";
version = "0.6.2";
src = fetchFromGitHub {
owner = "gittuf";
repo = pname;
rev = "v${version}";
hash = "sha256-iPaYwZUnIu9GeyY4kBhj+9gIINYx+pGSWJqPekh535g=";
};
vendorHash = "sha256-mafN+Nrr0AtfMjnXNoEIuz90kJa58pgY2vUOlv7v+TE=";
ldflags = [ "-X github.com/gittuf/gittuf/internal/version.gitVersion=${version}" ];
nativeCheckInputs = [ git openssh ];
checkFlags = [ "-skip=TestLoadRepository" "-skip=TestSSH" ];
postInstall = "rm $out/bin/cli"; # remove gendoc cli binary
meta = with lib; {
changelog = "https://github.com/gittuf/gittuf/blob/v${version}/CHANGELOG.md";
description = "Security layer for Git repositories";
homepage = "https://gittuf.dev";
license = licenses.asl20;
mainProgram = "gittuf";
maintainers = with maintainers; [ flandweber ];
};
}