@@ -0,0 +1,34 @@
1+{ lib
2+, buildGoModule
3+, fetchFromGitHub
4+}:
5+
6+buildGoModule rec {
7+ pname = "mapcidr";
8+ version = "0.0.8";
9+
10+ src = fetchFromGitHub {
11+ owner = "projectdiscovery";
12+ repo = pname;
13+ rev = "v${version}";
14+ sha256 = "sha256-hlMIgSsSqvMx6Y7JnR7L9muTLWPfxDN5raJRezt99G0=";
15+ };
16+
17+ vendorSha256 = "sha256-zp+XaSZgSMwJK+EEiTaJKBTPiKYaYpTtArnGBmHUGzE=";
18+
19+ modRoot = ".";
20+ subPackages = [
21+ "cmd/mapcidr"
22+ ];
23+
24+ meta = with lib; {
25+ description = "Small utility program to perform multiple operations for a given subnet/CIDR ranges";
26+ longDescription = ''
27+ mapCIDR is developed to ease load distribution for mass scanning
28+ operations, it can be used both as a library and as independent CLI tool.
29+ '';
30+ homepage = "https://github.com/projectdiscovery/mapcidr";
31+ license = licenses.mit;
32+ maintainers = with maintainers; [ hanemile ];
33+ };
34+}