Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "gomapenum";
8 version = "1.1.0";
9
10 src = fetchFromGitHub {
11 owner = "nodauf";
12 repo = "GoMapEnum";
13 rev = "v${version}";
14 sha256 = "sha256-a0JpHk5pUe+MkcmJl871JwkOfFDg3S4yOzFIeXCReLE=";
15 };
16
17 vendorSha256 = "sha256-5C0dDY/42H8oHNdQaKYiuqpi2QqqgHC7VMO/0kFAofY=";
18
19 postInstall = ''
20 mv $out/bin/src $out/bin/$pname
21 '';
22
23 meta = with lib; {
24 description = "Tools for user enumeration and password bruteforce";
25 homepage = "https://github.com/nodauf/GoMapEnum";
26 license = with licenses; [ gpl3Only ];
27 maintainers = with maintainers; [ fab ];
28 };
29}