at 24.11-pre 44 lines 979 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 makeWrapper, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "exploitdb"; 10 version = "2024-05-20"; 11 12 src = fetchFromGitLab { 13 owner = "exploit-database"; 14 repo = "exploitdb"; 15 rev = "refs/tags/${version}"; 16 hash = "sha256-Cizs0dUP0wuwo3jYaL73gXUdxsMEBH91DgdQD6GbHrc="; 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 = with lib; { 30 description = "Archive of public exploits and corresponding vulnerable software"; 31 homepage = "https://gitlab.com/exploit-database/exploitdb"; 32 license = with licenses; [ 33 gpl2Plus 34 gpl3Plus 35 mit 36 ]; 37 maintainers = with maintainers; [ 38 applePrincess 39 fab 40 ]; 41 mainProgram = "searchsploit"; 42 platforms = platforms.unix; 43 }; 44}