From 746f9e72d8c64e18f9ddc2591af23adc52cc44c6 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 4 Oct 2021 21:15:06 -0400 Subject: [PATCH] exploitdb: clean up bin directory --- pkgs/tools/security/exploitdb/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/exploitdb/default.nix b/pkgs/tools/security/exploitdb/default.nix index 492bfd63f402..486e48364861 100644 --- a/pkgs/tools/security/exploitdb/default.nix +++ b/pkgs/tools/security/exploitdb/default.nix @@ -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 '';