{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "subfinder"; version = "2.9.0"; src = fetchFromGitHub { owner = "projectdiscovery"; repo = "subfinder"; tag = "v${version}"; hash = "sha256-llyzTGy7nj5RFwt0KDPP9Ua1FkcrErW8GdvbSWg3mpk="; }; vendorHash = "sha256-z+CKoRxxskyKYmBfIEQjtf8nXuGfWH+4IG98+1eCCmk="; patches = [ # Disable automatic version check ./disable-update-check.patch ]; subPackages = [ "cmd/subfinder/" ]; ldflags = [ "-w" "-s" ]; meta = with lib; { description = "Subdomain discovery tool"; longDescription = '' SubFinder is a subdomain discovery tool that discovers valid subdomains for websites. Designed as a passive framework to be useful for bug bounties and safe for penetration testing. ''; homepage = "https://github.com/projectdiscovery/subfinder"; license = licenses.mit; maintainers = with maintainers; [ fpletz Br1ght0ne Misaka13514 ]; mainProgram = "subfinder"; }; }