Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 makeWrapper, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "exploitdb"; 10 version = "2025-07-29"; 11 12 src = fetchFromGitLab { 13 owner = "exploit-database"; 14 repo = "exploitdb"; 15 tag = finalAttrs.version; 16 hash = "sha256-COLlHFSMaYlXJovuT73pIs9n55xXqZM1HvgRsFRYBPU="; 17 }; 18 19 nativeBuildInputs = [ makeWrapper ]; 20 21 installPhase = '' 22 runHook preInstall 23 mkdir -p $out/bin $out/share 24 cp --recursive . $out/share/exploitdb 25 makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit 26 runHook postInstall 27 ''; 28 29 meta = { 30 description = "Archive of public exploits and corresponding vulnerable software"; 31 homepage = "https://gitlab.com/exploit-database/exploitdb"; 32 license = with lib.licenses; [ 33 gpl2Plus 34 gpl3Plus 35 mit 36 ]; 37 maintainers = with lib.maintainers; [ 38 applePrincess 39 fab 40 ]; 41 mainProgram = "searchsploit"; 42 platforms = lib.platforms.unix; 43 }; 44})