trufflehog: migrate to versionCheckHook

This commit is contained in:
Fabian Affolter
2024-12-04 15:42:51 +01:00
parent 73877ce1aa
commit f85ff70f0a
+6 -5
View File
@@ -2,8 +2,7 @@
lib,
fetchFromGitHub,
buildGoModule,
testers,
trufflehog,
versionCheckHook,
}:
buildGoModule rec {
@@ -21,6 +20,8 @@ buildGoModule rec {
proxyVendor = true;
nativeInstallCheckInputs = [ versionCheckHook ];
ldflags = [
"-s"
"-w"
@@ -34,9 +35,9 @@ buildGoModule rec {
rm $out/bin/{generate,snifftest}
'';
passthru = {
tests.version = testers.testVersion { package = trufflehog; };
};
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = with lib; {
description = "Find credentials all over the place";