depot/third_party/nixpkgs/pkgs/by-name/as/asn/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

51 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.78.0";
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
rev = "refs/tags/v${version}";
hash = "sha256-pXPc6cAPqvbECvP3v3Z1Og8jhIhh5zvXomZrxNX6KVI=";
};
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";
};
}