From 813a35d37f7a23a0d9ef640708ed216449a82ae8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Dec 2024 22:32:28 +0100 Subject: [PATCH] nuclei: add versionCheckHook --- pkgs/by-name/nu/nuclei/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/nu/nuclei/package.nix b/pkgs/by-name/nu/nuclei/package.nix index 4d10cc6fbf00..c066bfa397df 100644 --- a/pkgs/by-name/nu/nuclei/package.nix +++ b/pkgs/by-name/nu/nuclei/package.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + versionCheckHook, }: buildGoModule rec { @@ -16,10 +17,13 @@ buildGoModule rec { }; vendorHash = "sha256-lxqVNhA8/iMx31Bbp4rIHVrh3nUARlxY2KDcCxOtO+I="; + proxyVendor = true; # hash mismatch between Linux and Darwin subPackages = [ "cmd/nuclei/" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + ldflags = [ "-w" "-s" @@ -28,6 +32,10 @@ buildGoModule rec { # Test files are not part of the release tarball doCheck = false; + doInstallCheck = true; + + versionCheckProgramArg = [ "-version" ]; + meta = with lib; { description = "Tool for configurable targeted scanning"; longDescription = ''