2022-09-29 14:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "asnmap";
|
2023-03-22 06:06:04 +00:00
|
|
|
version = "1.0.2";
|
2022-09-29 14:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
2023-03-02 20:33:41 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-22 06:06:04 +00:00
|
|
|
hash = "sha256-7yKOeKSsexqLZ+ep7+mft6GlHrZiwv6OOCeERZu7gAE=";
|
2022-09-29 14:20:00 +00:00
|
|
|
};
|
|
|
|
|
2023-03-22 06:06:04 +00:00
|
|
|
vendorHash = "sha256-VmbmRkJB5jme8j/ONMkbsITJxg5inxYnb5AoKUR3Uzg=";
|
2022-09-29 14:20:00 +00:00
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to gather network ranges using ASN information";
|
|
|
|
homepage = "https://github.com/projectdiscovery/asnmap";
|
2023-03-02 20:33:41 +00:00
|
|
|
changelog = "https://github.com/projectdiscovery/asnmap/releases/tag/v${version}";
|
2022-09-29 14:20:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|