electron_*-bin: fix libGL

This commit is contained in:
Kiskae 2024-02-02 20:40:17 +01:00
parent b8b232ae7b
commit 1f09eb4d9e

View File

@ -12,7 +12,7 @@
, mesa
, libxkbcommon
, libxshmfence
, libglvnd
, libGL
, alsa-lib
, cairo
, cups
@ -102,7 +102,7 @@ let
++ lib.optionals (lib.versionOlder version "10.0.0") [ libXScrnSaver ]
++ lib.optionals (lib.versionAtLeast version "11.0.0") [ libxkbcommon ]
++ lib.optionals (lib.versionAtLeast version "12.0.0") [ libxshmfence ]
++ lib.optionals (lib.versionAtLeast version "17.0.0") [ libglvnd ]
++ lib.optionals (lib.versionAtLeast version "17.0.0") [ libGL ]
);
linux = {
@ -130,6 +130,11 @@ let
--set-rpath "${electronLibPath}:$out/libexec/electron" \
$out/libexec/electron/.electron-wrapped \
${lib.optionalString (lib.versionAtLeast version "15.0.0") "$out/libexec/electron/.chrome_crashpad_handler-wrapped" }
# patch libANGLE
patchelf \
--set-rpath "${lib.makeLibraryPath [ libGL pciutils ]}" \
$out/libexec/electron/lib*GL*
'';
};