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-15 16:39:30 +00:00
|
|
|
version = "3.29.1";
|
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-15 16:39:30 +00:00
|
|
|
hash = "sha256-ZCHrqvqIlANqkZ/zVYbwOsRimWVUAZ8zvBnfTaBE8qk=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
vendorHash = "sha256-Z1QJM2feKFQ8MEVwzYt+MkpDZHiaVWlzq2lbResWQWk=";
|
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
|
|
|
};
|
|
|
|
}
|