mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, curl
|
|
, whois
|
|
, bind
|
|
, mtr
|
|
, jq
|
|
, ipcalc
|
|
, grepcidr
|
|
, nmap
|
|
, aha
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "asn";
|
|
version = "0.73";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nitefood";
|
|
repo = "asn";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-z0vjYU6k+6p/lASqOase91aqkUvmuy8sUBjsq2OPnxE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|