2021-10-11 16:52:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mapcidr";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.1.0";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-cpNNStPgGnEtiiHgpiLUvEFu78NtyJIVgjrkh6N+dLU=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-t6bTbgOTWNz3nz/Tgwkd+TCBhN++0UaV0LqaEsO9YCI=";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hanemile ];
|
|
|
|
};
|
|
|
|
}
|