nixpkgs/pkgs/by-name/na/naabu/package.nix
2025-07-14 23:38:11 +00:00

52 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
libpcap,
versionCheckHook,
}:
buildGoModule rec {
pname = "naabu";
version = "2.3.5";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "naabu";
tag = "v${version}";
hash = "sha256-UHjWO/uCfUF6xylfYLbwiMwpNwZvlNoVRzRhRFxfqck=";
};
vendorHash = "sha256-wl0BqZXd7NRNBY3SCLOwfwa3e91ar5JX6lxtkQChXHM=";
buildInputs = [ libpcap ];
nativeInstallCheckInputs = [ versionCheckHook ];
subPackages = [ "cmd/naabu/" ];
ldflags = [
"-w"
"-s"
];
doInstallCheck = true;
versionCheckProgramArg = "-version";
meta = {
description = "Fast SYN/CONNECT port scanner";
longDescription = ''
Naabu is a port scanning tool written in Go that allows you to enumerate
valid ports for hosts in a fast and reliable manner. It is a really simple
tool that does fast SYN/CONNECT scans on the host/list of hosts and lists
all ports that return a reply.
'';
homepage = "https://github.com/projectdiscovery/naabu";
changelog = "https://github.com/projectdiscovery/naabu/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "naabu";
};
}