mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 23:21:27 +00:00
gittuf: add versionCheckHook and update script
Signed-off-by: Anish Pallati <i@anish.land>
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
gnupg,
|
||||
less,
|
||||
openssh,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@@ -36,6 +38,12 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
postInstall = "rm $out/bin/cli $out/bin/sandbox"; # remove gendoc helper binaries
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/gittuf/gittuf/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "Security layer for Git repositories";
|
||||
|
||||
Reference in New Issue
Block a user