depot/third_party/nixpkgs/pkgs/tools/misc/mapcidr/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

36 lines
995 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "mapcidr";
version = "1.1.34";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-/bZ6LimkdbR7nG7XcetNshk0KXw1FGbuaTXP+DH7hQg=";
};
vendorHash = "sha256-tbMCXNBND9jc0C1bA9Rmz1stYKtJPmMzTlbGc3vcmE4=";
modRoot = ".";
subPackages = [
"cmd/mapcidr"
];
meta = with lib; {
description = "Small utility program to perform multiple operations for a given subnet/CIDR ranges";
longDescription = ''
mapCIDR is developed to ease load distribution for mass scanning
operations, it can be used both as a library and as independent CLI tool.
'';
homepage = "https://github.com/projectdiscovery/mapcidr";
changelog = "https://github.com/projectdiscovery/mapcidr/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ hanemile ];
mainProgram = "mapcidr";
};
}