mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 00:50:59 +00:00
electron: add missing wayland runtimeDependency
when using --ozone-platform-hint=wayland it will dlopen this library.
Adding wayland to rpath does not increase the closure size since gtk3
already should have wayland in its closure.
This fixes element-desktop for example.
(cherry picked from commit 3905ea888e)
This commit is contained in:
committed by
github-actions[bot]
parent
6c432c54d8
commit
fc7e46afbc
@@ -16,6 +16,7 @@
|
||||
, libappindicator-gtk3
|
||||
, libxshmfence
|
||||
, libglvnd
|
||||
, wayland
|
||||
}@args:
|
||||
|
||||
let
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
, libappindicator-gtk3
|
||||
, libxshmfence
|
||||
, libglvnd
|
||||
, wayland
|
||||
}:
|
||||
|
||||
version: hashes:
|
||||
@@ -64,7 +65,7 @@ let
|
||||
};
|
||||
|
||||
electronLibPath = with lib; makeLibraryPath (
|
||||
[ libuuid at-spi2-atk at-spi2-core libappindicator-gtk3 ]
|
||||
[ libuuid at-spi2-atk at-spi2-core libappindicator-gtk3 wayland ]
|
||||
++ optionals (versionAtLeast version "9.0.0") [ libdrm mesa ]
|
||||
++ optionals (versionOlder version "10.0.0") [ libXScrnSaver ]
|
||||
++ optionals (versionAtLeast version "11.0.0") [ libxkbcommon ]
|
||||
|
||||
Reference in New Issue
Block a user