trufflehog: wrapProgram to ignore updater (#365996)

This commit is contained in:
Fabian Affolter
2024-12-18 13:56:08 +01:00
committed by GitHub
+9 -1
View File
@@ -3,6 +3,7 @@
fetchFromGitHub,
buildGoModule,
versionCheckHook,
makeWrapper,
}:
buildGoModule rec {
@@ -18,6 +19,8 @@ buildGoModule rec {
vendorHash = "sha256-M8qasSqn0NdQOk7/Sq0NhK/YFMjJSrPRF61h5k3MPB0=";
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;
@@ -44,6 +49,9 @@ buildGoModule rec {
homepage = "https://github.com/trufflesecurity/trufflehog";
changelog = "https://github.com/trufflesecurity/trufflehog/releases/tag/v${version}";
license = with licenses; [ agpl3Only ];
maintainers = with maintainers; [ fab ];
maintainers = with maintainers; [
fab
sarcasticadmin
];
};
}