asn: refactor
This commit is contained in:
parent
c7f0179ef5
commit
102bbc2515
1 changed files with 9 additions and 6 deletions
|
@ -20,11 +20,13 @@ stdenv.mkDerivation rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nitefood";
|
owner = "nitefood";
|
||||||
repo = "asn";
|
repo = "asn";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-XqP0Nx5pfYtM1xXxEDGooONj7nQ9UngJ9/AOZefnPV8=";
|
hash = "sha256-XqP0Nx5pfYtM1xXxEDGooONj7nQ9UngJ9/AOZefnPV8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dv asn "$out/bin/asn"
|
install -Dv asn "$out/bin/asn"
|
||||||
|
@ -33,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||||
--prefix PATH : "${lib.makeBinPath [ curl whois bind mtr jq ipcalc grepcidr nmap aha ]}"
|
--prefix PATH : "${lib.makeBinPath [ curl whois bind mtr jq ipcalc grepcidr nmap aha ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "OSINT command line tool for investigating network data";
|
description = "OSINT command line tool for investigating network data";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization /
|
ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization /
|
||||||
|
@ -41,7 +43,8 @@ stdenv.mkDerivation rec {
|
||||||
lookup API server / Web traceroute server
|
lookup API server / Web traceroute server
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/nitefood/asn";
|
homepage = "https://github.com/nitefood/asn";
|
||||||
license = with lib.licenses; [ mit ];
|
changelog = "https://github.com/nitefood/asn/releases/tag/v${version}";
|
||||||
maintainers = with lib.maintainers; [ devhell ];
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ devhell ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue