Files
nixpkgs/pkgs/by-name/as/asn/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

65 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
curl,
whois,
bind,
mtr,
jq,
ipcalc,
grepcidr,
nmap,
aha,
}:
stdenv.mkDerivation rec {
pname = "asn";
version = "0.80.0";
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
tag = "v${version}";
hash = "sha256-GHzlYLBiWkayYvbkc/n1HLhL7RN1Q/AEjj+IDQBDTek=";
};
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
install -Dv asn "$out/bin/asn"
wrapProgram $out/bin/asn \
--prefix PATH : "${
lib.makeBinPath [
curl
whois
bind
mtr
jq
ipcalc
grepcidr
nmap
aha
]
}"
'';
meta = {
description = "OSINT command line tool for investigating network data";
longDescription = ''
ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization /
IP reputation / IP geolocation / IP fingerprinting / Network recon /
lookup API server / Web traceroute server
'';
homepage = "https://github.com/nitefood/asn";
changelog = "https://github.com/nitefood/asn/releases/tag/v${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ devhell ];
mainProgram = "asn";
};
}