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:
Jörg Thalheim
2022-12-20 09:31:21 +01:00
committed by github-actions[bot]
parent 6c432c54d8
commit fc7e46afbc
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 ]