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