nuclei: add versionCheckHook

This commit is contained in:
Fabian Affolter
2024-12-02 22:32:28 +01:00
parent 674c82128b
commit 813a35d37f
+8
View File
@@ -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 = ''