gittuf: add versionCheckHook and update script

Signed-off-by: Anish Pallati <i@anish.land>
This commit is contained in:
Anish Pallati
2026-07-11 18:13:13 -04:00
parent 744b91139e
commit a322b7b5aa

View File

@@ -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";