diff --git a/pkgs/tools/security/trufflehog/default.nix b/pkgs/tools/security/trufflehog/default.nix index a9d52bec88d6..872acb41f631 100644 --- a/pkgs/tools/security/trufflehog/default.nix +++ b/pkgs/tools/security/trufflehog/default.nix @@ -3,6 +3,7 @@ fetchFromGitHub, buildGoModule, versionCheckHook, + makeWrapper, }: buildGoModule rec { @@ -18,6 +19,8 @@ buildGoModule rec { vendorHash = "sha256-QFcA/m41l0QCmKSGN5SB7KPdRja+7bGfcqqqHg//OXU="; + nativeBuildInputs = [ makeWrapper ]; + proxyVendor = true; nativeInstallCheckInputs = [ versionCheckHook ]; @@ -33,6 +36,8 @@ buildGoModule rec { postInstall = '' rm $out/bin/{generate,snifftest} + + wrapProgram $out/bin/trufflehog --add-flags --no-update ''; doInstallCheck = true;