{ lib , fetchFromGitHub , buildGoModule }: buildGoModule rec { pname = "trufflehog"; version = "3.26.0"; src = fetchFromGitHub { owner = "trufflesecurity"; repo = "trufflehog"; rev = "refs/tags/v${version}"; hash = "sha256-cjggYIc/xy7w8Q8yXd26QWr1ky4gMuwRAmxrEObVlx0="; }; vendorHash = "sha256-z2na/CO/YqIYEAYJ9ATQ/wbOOBFt0Kr+ERN5TCFbZbA="; # 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 ]; }; }