2021-10-11 16:52:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mapcidr";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.1.16";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
2023-03-27 19:17:25 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-O0HVlrLOz4+hxhf/BTSZs0qDCbYokbzmg5KbzUD1UHg=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-j/3Z2KxbybJoE6/PXkwMLivzmTnZSi7tgO8IQKCoaEQ=";
|
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";
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/projectdiscovery/mapcidr/releases/tag/v${version}";
|
2021-10-11 16:52:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hanemile ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mapcidr";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
}
|