nixpkgs/pkgs/by-name/as/asn/package.nix

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

52 lines
1.2 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";
2024-08-21 00:45:06 +00:00
version = "0.78.0";
2022-08-20 16:03:48 +00:00
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
2023-11-24 11:42:57 +00:00
rev = "refs/tags/v${version}";
2024-08-21 00:45:06 +00:00
hash = "sha256-pXPc6cAPqvbECvP3v3Z1Og8jhIhh5zvXomZrxNX6KVI=";
2022-08-20 16:03:48 +00:00
};
2023-11-24 11:42:57 +00:00
nativeBuildInputs = [
makeWrapper
];
2022-08-20 16:03:48 +00:00
installPhase = ''
install -Dv asn "$out/bin/asn"
wrapProgram $out/bin/asn \
--prefix PATH : "${lib.makeBinPath [ curl whois bind mtr jq ipcalc grepcidr nmap aha ]}"
'';
2023-11-24 11:42:57 +00:00
meta = with lib; {
2022-08-20 16:03:48 +00:00
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";
2023-11-24 11:42:57 +00:00
changelog = "https://github.com/nitefood/asn/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ devhell ];
2023-11-27 01:17:53 +00:00
mainProgram = "asn";
2022-08-20 16:03:48 +00:00
};
}