at 23.11-beta 38 lines 935 B view raw
1{ lib 2, stdenv 3, fetchFromGitLab 4, makeWrapper 5}: 6 7stdenv.mkDerivation rec { 8 pname = "exploitdb"; 9 version = "2023-11-18"; 10 11 src = fetchFromGitLab { 12 owner = "exploit-database"; 13 repo = pname; 14 rev = "refs/tags/${version}"; 15 hash = "sha256-7W7HwHvRfm+nRms4H4TgB1la5OhGHv5lRHwbvjwRTMw="; 16 }; 17 18 nativeBuildInputs = [ 19 makeWrapper 20 ]; 21 22 installPhase = '' 23 runHook preInstall 24 mkdir -p $out/bin $out/share 25 cp --recursive . $out/share/exploitdb 26 makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit 27 runHook postInstall 28 ''; 29 30 meta = with lib; { 31 homepage = "https://gitlab.com/exploit-database/exploitdb"; 32 description = "Archive of public exploits and corresponding vulnerable software"; 33 license = with licenses; [ gpl2Plus gpl3Plus mit ]; 34 maintainers = with maintainers; [ applePrincess fab ]; 35 mainProgram = "searchsploit"; 36 platforms = platforms.unix; 37 }; 38}