2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
2023-01-11 07:51:40 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "trufflehog";
|
|
|
|
version = "3.24.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trufflesecurity";
|
|
|
|
repo = "trufflehog";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MFGOw7SuTCf4no5iUxppaNjsDvhsuQQXcXutE3L7iRk=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
vendorHash = "sha256-UqoFEvixSk42UTMswc8tUDVxYVkfgkern3NeDyiUMMw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
# Test cases run git clone and require network access
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/{generate,snifftest}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Find credentials all over the place";
|
|
|
|
homepage = "https://github.com/trufflesecurity/trufflehog";
|
|
|
|
changelog = "https://github.com/trufflesecurity/trufflehog/releases/tag/v${version}";
|
|
|
|
license = with licenses; [ agpl3 ];
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|