Files
nixpkgs/pkgs/by-name/na/naabu/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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";
};
}