3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #140442 from buckley310/exploitdb

This commit is contained in:
Sandro 2021-10-05 17:19:35 +02:00 committed by GitHub
commit e4e7266dd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{stdenv, lib, fetchFromGitHub }:
{ stdenv, lib, fetchFromGitHub, makeWrapper }:
stdenv.mkDerivation rec {
pname = "exploitdb";
@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-gUjFFxzkHHhNMDAgFmmIAuEACSCn1YXuauvjGAkrK6k=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp --recursive ./* $out/bin
cp ./.searchsploit_rc $out/bin
mkdir -p $out/bin $out/share
cp --recursive . $out/share/exploitdb
makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit
runHook postInstall
'';