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
|
|
|
}:
|
2018-05-12 14:59:54 +00:00
|
|
|
|
2022-12-30 04:01:53 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "trufflehog";
|
|
|
|
version = "3.21.0";
|
2018-05-12 14:59:54 +00:00
|
|
|
|
2022-12-30 04:01:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trufflesecurity";
|
|
|
|
repo = "trufflehog";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-rse5uyQ7EUBhs0IyC92B/Z7YCeNIXTlZEqrlcjFekgA=";
|
|
|
|
};
|
2018-05-12 14:59:54 +00:00
|
|
|
|
2022-12-30 04:01:53 +00:00
|
|
|
vendorSha256 = "sha256-KyyJ7hUWF29L8oB9GkJ918/BQoLMsz+tStT2T9Azunk=";
|
2018-05-12 14:59:54 +00:00
|
|
|
|
2022-12-30 04:01:53 +00:00
|
|
|
# Test cases run git clone and require network access
|
|
|
|
doCheck = false;
|
2018-05-12 14:59:54 +00:00
|
|
|
|
2022-12-30 04:01:53 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/{generate,snifftest}
|
|
|
|
'';
|
2018-05-12 14:59:54 +00:00
|
|
|
|
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; [ ];
|
|
|
|
};
|
|
|
|
}
|