mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
36 lines
804 B
Nix
36 lines
804 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "asnmap";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectdiscovery";
|
|
repo = "asnmap";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Of4IVra6kMHY9btWcF9grM/r3lTWFP/geeT309Seasw=";
|
|
};
|
|
|
|
vendorHash = "sha256-RDv8vkBI3miyeNAbhUsMpuZCYRUZ0ATfXYHxaTgTVfA=";
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tool to gather network ranges using ASN information";
|
|
mainProgram = "asnmap";
|
|
homepage = "https://github.com/projectdiscovery/asnmap";
|
|
changelog = "https://github.com/projectdiscovery/asnmap/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|