From 97a94014f50ac4543c00bb00cfd4c6402e2f6269 Mon Sep 17 00:00:00 2001 From: Congee Date: Fri, 22 Apr 2022 17:07:03 -0400 Subject: [PATCH] electron: fix rpath for executable chrome_crashpad_handler chrome_crashpad_handler the crash reporter does not work if rpath is unpatched --- pkgs/development/tools/electron/generic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index 08edf8a30927..eea2625a17df 100644 --- a/pkgs/development/tools/electron/generic.nix +++ b/pkgs/development/tools/electron/generic.nix @@ -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 \