mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00
Merge pull request #140442 from buckley310/exploitdb
This commit is contained in:
commit
e4e7266dd2
@ -1,4 +1,4 @@
|
|||||||
{stdenv, lib, fetchFromGitHub }:
|
{ stdenv, lib, fetchFromGitHub, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "exploitdb";
|
pname = "exploitdb";
|
||||||
@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-gUjFFxzkHHhNMDAgFmmIAuEACSCn1YXuauvjGAkrK6k=";
|
sha256 = "sha256-gUjFFxzkHHhNMDAgFmmIAuEACSCn1YXuauvjGAkrK6k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin $out/share
|
||||||
cp --recursive ./* $out/bin
|
cp --recursive . $out/share/exploitdb
|
||||||
cp ./.searchsploit_rc $out/bin
|
makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user