lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "mapcidr";
8 version = "1.0.3";
9
10 src = fetchFromGitHub {
11 owner = "projectdiscovery";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "sha256-dsHTnaK1Bna6Gbr/J+PYjeZ0WqJh696sliTd5JF1C+o=";
15 };
16
17 vendorSha256 = "sha256-RblYkQSOMOKaI4ODkNae3rxJEaxkzwA2SuoMr+Z2/ew=";
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}