asn: refactor

This commit is contained in:
Fabian Affolter 2023-11-24 12:42:57 +01:00 committed by GitHub
parent c7f0179ef5
commit 102bbc2515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,11 +20,13 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "nitefood";
repo = "asn";
rev = "v${version}";
sha256 = "sha256-XqP0Nx5pfYtM1xXxEDGooONj7nQ9UngJ9/AOZefnPV8=";
rev = "refs/tags/v${version}";
hash = "sha256-XqP0Nx5pfYtM1xXxEDGooONj7nQ9UngJ9/AOZefnPV8=";
};
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
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 ]}"
'';
meta = {
meta = with lib; {
description = "OSINT command line tool for investigating network data";
longDescription = ''
ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization /
@ -41,7 +43,8 @@ stdenv.mkDerivation rec {
lookup API server / Web traceroute server
'';
homepage = "https://github.com/nitefood/asn";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ devhell ];
changelog = "https://github.com/nitefood/asn/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ devhell ];
};
}