Merge pull request #187614 from devhell/init-asn
This commit is contained in:
commit
62d70ba9bf
2 changed files with 49 additions and 0 deletions
47
pkgs/applications/networking/asn/default.nix
Normal file
47
pkgs/applications/networking/asn/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, curl
|
||||
, whois
|
||||
, bind
|
||||
, mtr
|
||||
, jq
|
||||
, ipcalc
|
||||
, grepcidr
|
||||
, nmap
|
||||
, aha
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "asn";
|
||||
version = "0.72.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nitefood";
|
||||
repo = "asn";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-2JGc1PhvmuZFT6c6UcxHKttHqWF+NsekqnYtdGKgU2U=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -240,6 +240,8 @@ with pkgs;
|
|||
|
||||
aeskeyfind = callPackage ../tools/security/aeskeyfind { };
|
||||
|
||||
asn = callPackage ../applications/networking/asn { };
|
||||
|
||||
astrolog = callPackage ../applications/science/astronomy/astrolog { };
|
||||
|
||||
atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { };
|
||||
|
|
Loading…
Reference in a new issue