From 62f5a23f66838f6055acee8666d3649209c20b02 Mon Sep 17 00:00:00 2001 From: Jakub Darul Date: Fri, 4 Mar 2022 20:03:17 +0100 Subject: [PATCH] brave: enable native wayland support with NIXOS_OZONE_WL --- pkgs/applications/networking/browsers/brave/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/browsers/brave/default.nix b/pkgs/applications/networking/browsers/brave/default.nix index 6fb29619ab9d..42efa94020f9 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 = ''