nixpkgs/pkgs/tools/security/trufflehog/default.nix
Fabian Affolter e9f4c8d41e trufflehog: 3.72.0 -> 3.73.0
Diff: trufflesecurity/trufflehog@refs/tags/v3.72.0...v3.73.0

Changelog: https://github.com/trufflesecurity/trufflehog/releases/tag/v3.73.0
2024-04-13 21:36:01 +02:00

49 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildGoModule,
testers,
trufflehog,
}:
buildGoModule rec {
pname = "trufflehog";
version = "3.73.0";
src = fetchFromGitHub {
owner = "trufflesecurity";
repo = "trufflehog";
rev = "refs/tags/v${version}";
hash = "sha256-5tyjSwuhrtiAzvS5F8TyPCZhjSasTWQE9wcNGDevucE=";
};
vendorHash = "sha256-eK4YwNkBvC7VW5Cn6/M4clN83LGRNuw5jpjtnM0B9g8=";
proxyVendor = true;
ldflags = [
"-s"
"-w"
"-X=github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion=${version}"
];
# Test cases run git clone and require network access
doCheck = false;
postInstall = ''
rm $out/bin/{generate,snifftest}
'';
passthru = {
tests.version = testers.testVersion { package = trufflehog; };
};
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 ];
};
}