{ lib, fetchFromGitHub, buildGoModule, testers, trufflehog, }: buildGoModule rec { pname = "trufflehog"; version = "3.75.0"; src = fetchFromGitHub { owner = "trufflesecurity"; repo = "trufflehog"; rev = "refs/tags/v${version}"; hash = "sha256-C8yMJnxc0j5F5U854ukWEsS2m7966Czsbp+T3sNswY0="; }; vendorHash = "sha256-CEGb9utdXyu6Navapbp0C/cWoNOrc0woRe0WAF/vr/M="; 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 ]; }; }