ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
33 lines
838 B
Nix
33 lines
838 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "trufflehog";
|
|
version = "3.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trufflesecurity";
|
|
repo = "trufflehog";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4h9obnh4+QNda0SoMPMFEyG0KnW4753RpXTPWi6yB34=";
|
|
};
|
|
|
|
vendorHash = "sha256-VBWzqfqte7aZ03HFW2L6wsEU84NBMTVrzKvdRUFGOro=";
|
|
|
|
# Test cases run git clone and require network access
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
rm $out/bin/{generate,snifftest}
|
|
'';
|
|
|
|
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; [ agpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|