naabu: add versionCheckHook

This commit is contained in:
Fabian Affolter
2024-12-02 21:57:07 +01:00
parent 5ef3bc8da4
commit 48c57334ef
+7
View File
@@ -3,6 +3,7 @@
buildGoModule,
fetchFromGitHub,
libpcap,
versionCheckHook,
}:
buildGoModule rec {
@@ -20,6 +21,8 @@ buildGoModule rec {
buildInputs = [ libpcap ];
nativeInstallCheckInputs = [ versionCheckHook ];
subPackages = [ "cmd/naabu/" ];
ldflags = [
@@ -27,6 +30,10 @@ buildGoModule rec {
"-s"
];
doInstallCheck = true;
versionCheckProgramArg = [ "-version" ];
meta = with lib; {
description = "Fast SYN/CONNECT port scanner";
longDescription = ''