mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
electron_*-bin: fix libGL
This commit is contained in:
parent
b8b232ae7b
commit
1f09eb4d9e
@ -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*
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user