trufflehog: wrapProgram to ignore updater

This commit is contained in:
Robert James Hernandez
2024-12-17 21:05:22 +00:00
parent 12122de466
commit bcf21645d2

View File

@@ -3,6 +3,7 @@
fetchFromGitHub,
buildGoModule,
versionCheckHook,
makeWrapper,
}:
buildGoModule rec {
@@ -18,6 +19,8 @@ buildGoModule rec {
vendorHash = "sha256-QFcA/m41l0QCmKSGN5SB7KPdRja+7bGfcqqqHg//OXU=";
nativeBuildInputs = [ makeWrapper ];
proxyVendor = true;
nativeInstallCheckInputs = [ versionCheckHook ];
@@ -33,6 +36,8 @@ buildGoModule rec {
postInstall = ''
rm $out/bin/{generate,snifftest}
wrapProgram $out/bin/trufflehog --add-flags --no-update
'';
doInstallCheck = true;