571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
973 B
Nix
43 lines
973 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "subfinder";
|
|
version = "2.6.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectdiscovery";
|
|
repo = "subfinder";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2IO7TyMcKUB2B9agCoIdjybEjr0RLCv+vhXn9e5eL28=";
|
|
};
|
|
|
|
vendorHash = "sha256-+JOrephdT0k3onbgA3CKLeF8iLWycybwtJxalC0n0Ys=";
|
|
|
|
modRoot = "./v2";
|
|
|
|
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";
|
|
};
|
|
}
|