Skip to content

Commit

Permalink
trufflehog: wrapProgram to ignore updater (NixOS#365996)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Dec 18, 2024
2 parents 536ef88 + ee604a3 commit fff17d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/tools/security/trufflehog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fetchFromGitHub,
buildGoModule,
versionCheckHook,
makeWrapper,
}:

buildGoModule rec {
Expand All @@ -18,6 +19,8 @@ buildGoModule rec {

vendorHash = "sha256-M8qasSqn0NdQOk7/Sq0NhK/YFMjJSrPRF61h5k3MPB0=";

nativeBuildInputs = [ makeWrapper ];

proxyVendor = true;

nativeInstallCheckInputs = [ versionCheckHook ];
Expand All @@ -33,6 +36,8 @@ buildGoModule rec {

postInstall = ''
rm $out/bin/{generate,snifftest}
wrapProgram $out/bin/trufflehog --add-flags --no-update
'';

doInstallCheck = true;
Expand All @@ -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
];
};
}

0 comments on commit fff17d2

Please sign in to comment.