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";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "3.28.7";
|
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}";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-6oOIKvUocImC3HMeG5aJXLlruymechcsDhMxEyYiNzU=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-/4xZjqstrjfIlD15x2INSunb57WGR7NzKaQxUABxQV0=";
|
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}";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = with licenses; [ agpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|