nixpkgs/pkgs/applications/networking/asn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2022-08-20 16:03:48 +00:00
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, curl
, whois
, bind
, mtr
, jq
, ipcalc
, grepcidr
, nmap
, aha
}:
stdenv.mkDerivation rec {
pname = "asn";
2023-05-14 16:57:16 +00:00
version = "0.74";
2022-08-20 16:03:48 +00:00
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
rev = "v${version}";
2023-05-14 16:57:16 +00:00
sha256 = "sha256-400I8aWQaPE7qCV/HqyPzuMmKpUyLc+RK7GCVgbt7JQ=";
2022-08-20 16:03:48 +00:00
};
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";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ devhell ];
};
}