From 331e45496ef1296d3f933e8c9b5024d2fc189589 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 31 Mar 2024 13:29:20 +0200 Subject: [PATCH] nuclei-templates: init at 9.8.0 Templates for the nuclei engine to find security vulnerabilities https://github.com/projectdiscovery/nuclei-templates --- pkgs/by-name/nu/nuclei-templates/package.nix | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/nu/nuclei-templates/package.nix diff --git a/pkgs/by-name/nu/nuclei-templates/package.nix b/pkgs/by-name/nu/nuclei-templates/package.nix new file mode 100644 index 000000000000..1d0c1c6c90bb --- /dev/null +++ b/pkgs/by-name/nu/nuclei-templates/package.nix @@ -0,0 +1,35 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation rec { + pname = "nuclei-templates"; + version = "9.8.0"; + + src = fetchFromGitHub { + owner = "projectdiscovery"; + repo = "nuclei-templates"; + rev = "refs/tags/v${version}"; + hash = "sha256-1aLy8wNWMFouZRjhCSiwSq1uo20C9wN7LPxyBqK6K0k="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/nuclei-templates + cp -R cloud code config dns file headless helpers http javascript network ssl \ + $out/share/nuclei-templates/ + + runHook postInstall + ''; + + meta = with lib; { + description = "Templates for the nuclei engine to find security vulnerabilities"; + homepage = "https://github.com/projectdiscovery/nuclei-templates"; + changelog = "https://github.com/projectdiscovery/nuclei-templates/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + platforms = platforms.all; + }; +}