bottom: add gpu recognition, new apple sdk, refactor (#360568)
[NixPkgs.git] / pkgs / by-name / nu / nuclei-templates / package.nix
blobf5334c6801f8936532a79ae58a64858f1f90af0e
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5 }:
7 stdenvNoCC.mkDerivation rec {
8   pname = "nuclei-templates";
9   version = "10.1.0";
11   src = fetchFromGitHub {
12     owner = "projectdiscovery";
13     repo = "nuclei-templates";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-QQPsj6s1CuEBfUI5L3gV8v2d4CxgoCOlsXe8FIkSJjU=";
16   };
18   installPhase = ''
19     runHook preInstall
21     mkdir -p $out/share/nuclei-templates
22     cp -R cloud code dast dns file headless helpers http javascript network profiles ssl \
23       $out/share/nuclei-templates/
25     runHook postInstall
26   '';
28   meta = with lib; {
29     description = "Templates for the nuclei engine to find security vulnerabilities";
30     homepage = "https://github.com/projectdiscovery/nuclei-templates";
31     changelog = "https://github.com/projectdiscovery/nuclei-templates/releases/tag/v${version}";
32     license = licenses.mit;
33     maintainers = with maintainers; [ fab ];
34     platforms = platforms.all;
35   };