exploitdb: fix nix/store path warning
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
fetchFromGitLab,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "exploitdb";
|
||||
version = "2025-09-18";
|
||||
@@ -22,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin $out/share
|
||||
cp --recursive . $out/share/exploitdb
|
||||
|
||||
substituteInPlace $out/share/exploitdb/.searchsploit_rc \
|
||||
--replace-fail 'path_array+=("/opt/exploitdb")' 'path_array+=("'$out'/share/exploitdb")' \
|
||||
--replace-fail 'path_array+=("/opt/exploitdb-papers")' 'path_array+=("'$out'/share/exploitdb")'
|
||||
|
||||
makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user