about summary refs log tree commit diff
path: root/pkgs/by-name/nu
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-03-31 13:29:20 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-03-31 13:29:20 +0200
commit331e45496ef1296d3f933e8c9b5024d2fc189589 (patch)
tree2d15bfbccd793cf9a1b5e00214405aa66fcbae85 /pkgs/by-name/nu
parentd3f8923899a36a1985b58804de2b0cb0862015cd (diff)
nuclei-templates: init at 9.8.0
Templates for the nuclei engine to find security vulnerabilities

https://github.com/projectdiscovery/nuclei-templates
Diffstat (limited to 'pkgs/by-name/nu')
-rw-r--r--pkgs/by-name/nu/nuclei-templates/package.nix35
1 files changed, 35 insertions, 0 deletions
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 0000000000000..1d0c1c6c90bbf
--- /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;
+  };
+}