mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
brave: enable native wayland support with NIXOS_OZONE_WL
This commit is contained in:
parent
9996dfac9a
commit
62f5a23f66
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user