mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "nuclei";
|
|
version = "3.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectdiscovery";
|
|
repo = "nuclei";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-1cEOdL/SKoG4wVt5sYOXHAbO5Id+OpV4FdPjA5Apc8c=";
|
|
};
|
|
|
|
vendorHash = "sha256-CKb1RUk3Qdmj6umXBWfoQSaqIwNMbcia5XeO08xNCa4=";
|
|
|
|
proxyVendor = true; # hash mismatch between Linux and Darwin
|
|
|
|
subPackages = [ "cmd/nuclei/" ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
];
|
|
|
|
# Test files are not part of the release tarball
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
versionCheckProgramArg = "-version";
|
|
|
|
meta = {
|
|
description = "Tool for configurable targeted scanning";
|
|
longDescription = ''
|
|
Nuclei is used to send requests across targets based on a template
|
|
leading to zero false positives and providing effective scanning
|
|
for known paths. Main use cases for nuclei are during initial
|
|
reconnaissance phase to quickly check for low hanging fruits or
|
|
CVEs across targets that are known and easily detectable.
|
|
'';
|
|
homepage = "https://github.com/projectdiscovery/nuclei";
|
|
changelog = "https://github.com/projectdiscovery/nuclei/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
fab
|
|
Misaka13514
|
|
];
|
|
mainProgram = "nuclei";
|
|
};
|
|
})
|