1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "subfinder";
9 version = "2.8.0";
10
11 src = fetchFromGitHub {
12 owner = "projectdiscovery";
13 repo = "subfinder";
14 tag = "v${version}";
15 hash = "sha256-HfQz0tLBKt16IrtxOT3lX28FcVG05X1hICw5Xq/dQJw=";
16 };
17
18 vendorHash = "sha256-3bHIrjA5Bbl6prF+ttEs+N2Sa4AMZDtRk3ysoIitsdY=";
19
20 modRoot = "./v2";
21
22 patches = [
23 # Disable automatic version check
24 ./disable-update-check.patch
25 ];
26
27 subPackages = [
28 "cmd/subfinder/"
29 ];
30
31 ldflags = [
32 "-w"
33 "-s"
34 ];
35
36 meta = with lib; {
37 description = "Subdomain discovery tool";
38 longDescription = ''
39 SubFinder is a subdomain discovery tool that discovers valid
40 subdomains for websites. Designed as a passive framework to be
41 useful for bug bounties and safe for penetration testing.
42 '';
43 homepage = "https://github.com/projectdiscovery/subfinder";
44 license = licenses.mit;
45 maintainers = with maintainers; [
46 fpletz
47 Br1ght0ne
48 Misaka13514
49 ];
50 mainProgram = "subfinder";
51 };
52}