trufflehog: wrapProgram to ignore updater (#365996)
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user