naabu: add versionCheckHook
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user