brave: enable native wayland support with NIXOS_OZONE_WL

This commit is contained in:
Jakub Darul 2022-03-04 20:03:17 +01:00
parent 9996dfac9a
commit 62f5a23f66

View File

@ -37,6 +37,7 @@
, pango
, pipewire
, udev
, wayland
, xorg
, zlib
, xdg-utils
@ -82,6 +83,7 @@ rpath = lib.makeLibraryPath [
pango
pipewire
udev
wayland
xdg-utils
xorg.libxcb
zlib
@ -160,6 +162,7 @@ stdenv.mkDerivation rec {
preFixup = ''
# Add command line args to wrapGApp.
gappsWrapperArgs+=(--add-flags ${lib.escapeShellArg commandLineArgs})
gappsWrapperArgs+=(--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}")
'';
installCheckPhase = ''