electron: fix rpath for executable chrome_crashpad_handler

chrome_crashpad_handler the crash reporter does not work if rpath is unpatched
This commit is contained in:
Congee 2022-04-22 17:07:03 -04:00
parent 5cefa27232
commit 97a94014f5
No known key found for this signature in database

View file

@ -92,7 +92,8 @@ let
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${atomEnv.libPath}:${electronLibPath}:$out/lib/electron" \
$out/lib/electron/electron
$out/lib/electron/electron \
${lib.optionalString (! lib.versionOlder version "15.0.0") "$out/lib/electron/chrome_crashpad_handler" }
wrapProgram $out/lib/electron/electron \
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \