electron: add missing wayland runtimeDependency (#206978)

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.
This commit is contained in:
Jörg Thalheim 2022-12-20 09:05:15 +00:00 committed by GitHub
parent 8bda09a85d
commit ba962cc4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
, libappindicator-gtk3
, libxshmfence
, libglvnd
, wayland
}@args:
let

View File

@ -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 ]