github-desktop: fix on wayland

This commit is contained in:
Maëlys Bras de fer 2024-05-22 17:22:59 +02:00
parent a39290dfdf
commit 7e6dd121bc

View File

@ -17,6 +17,7 @@
, mesa
, systemd
, openssl
, libglvnd
}:
let
@ -82,6 +83,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
preFixup = ''
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]}
)
'';