diff --git a/pkgs/tools/security/trufflehog/default.nix b/pkgs/tools/security/trufflehog/default.nix index fc678bda23a0..1fdfb7e8d45f 100644 --- a/pkgs/tools/security/trufflehog/default.nix +++ b/pkgs/tools/security/trufflehog/default.nix @@ -1,6 +1,8 @@ { lib , fetchFromGitHub , buildGoModule +, testers +, trufflehog }: buildGoModule rec { @@ -29,6 +31,12 @@ buildGoModule rec { rm $out/bin/{generate,snifftest} ''; + passthru = { + tests.version = testers.testVersion { + package = trufflehog; + }; + }; + meta = with lib; { description = "Find credentials all over the place"; homepage = "https://github.com/trufflesecurity/trufflehog";