nixpkgs/pkgs/tools/security/trufflehog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
734 B
Nix
Raw Normal View History

2022-12-05 19:13:49 +00:00
{ lib
2022-12-30 04:01:53 +00:00
, fetchFromGitHub
, buildGoModule
2022-12-05 19:13:49 +00:00
}:
2022-12-30 04:01:53 +00:00
buildGoModule rec {
pname = "trufflehog";
version = "3.21.0";
2022-12-30 04:01:53 +00:00
src = fetchFromGitHub {
owner = "trufflesecurity";
repo = "trufflehog";
rev = "v${version}";
sha256 = "sha256-rse5uyQ7EUBhs0IyC92B/Z7YCeNIXTlZEqrlcjFekgA=";
};
2022-12-30 04:01:53 +00:00
vendorSha256 = "sha256-KyyJ7hUWF29L8oB9GkJ918/BQoLMsz+tStT2T9Azunk=";
2022-12-30 04:01:53 +00:00
# Test cases run git clone and require network access
doCheck = false;
2022-12-30 04:01:53 +00:00
postInstall = ''
rm $out/bin/{generate,snifftest}
'';
2022-12-30 04:01:53 +00:00
meta = with lib; {
description = "Find credentials all over the place";
homepage = "https://github.com/trufflesecurity/trufflehog";
license = with licenses; [ agpl3 ];
maintainers = with maintainers; [ ];
};
}