My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/security/exploitdb/default.nix

31 lines
896 B

{ stdenv, lib, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec {
pname = "exploitdb";
version = "2022-05-18";
src = fetchFromGitHub {
owner = "offensive-security";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-E2QPeSlsJCRhnwgxr1NerLkSFbLLaTSLl8oeYsHQM+U=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share
cp --recursive . $out/share/exploitdb
makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/offensive-security/exploitdb";
description = "Archive of public exploits and corresponding vulnerable software";
license = with licenses; [ gpl2Plus gpl3Plus mit ];
maintainers = with maintainers; [ applePrincess ];
mainProgram = "searchsploit";
};
}