diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix index 7c0006f745c6..59018c3bfb50 100644 --- a/pkgs/applications/networking/browsers/brave/default.nix +++ b/pkgs/applications/networking/browsers/brave/default.nix @@ -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 = ''