nixpkgs/pkgs/tools/security/asnmap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
804 B
Nix
Raw Normal View History

2022-09-29 14:20:00 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "asnmap";
2024-03-01 11:46:10 +00:00
version = "1.1.0";
2022-09-29 14:20:00 +00:00
src = fetchFromGitHub {
owner = "projectdiscovery";
2024-03-01 13:08:33 +00:00
repo = "asnmap";
2023-03-02 20:33:41 +00:00
rev = "refs/tags/v${version}";
2024-03-01 11:46:10 +00:00
hash = "sha256-Of4IVra6kMHY9btWcF9grM/r3lTWFP/geeT309Seasw=";
2022-09-29 14:20:00 +00:00
};
2024-03-01 11:46:10 +00:00
vendorHash = "sha256-RDv8vkBI3miyeNAbhUsMpuZCYRUZ0ATfXYHxaTgTVfA=";
2022-09-29 14:20:00 +00:00
2024-03-01 13:08:33 +00:00
ldflags = [
"-w"
"-s"
];
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";
mainProgram = "asnmap";
2022-09-29 14:20:00 +00:00
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 ];
};
}