1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/applications/networking/asn/default.nix
2023-12-13 05:04:05 +00:00

52 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, curl
, whois
, bind
, mtr
, jq
, ipcalc
, grepcidr
, nmap
, aha
}:
stdenv.mkDerivation rec {
pname = "asn";
version = "0.75.2";
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
rev = "refs/tags/v${version}";
hash = "sha256-G8TDl9R5nbUzmjcr1m+eNNybSDqb64c7ZOO/viL5/Q4=";
};
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 = with lib; {
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 licenses; [ mit ];
maintainers = with maintainers; [ devhell ];
mainProgram = "asn";
};
}