From 36844f79c6a166dbc08b4ee147e3aaba2184e058 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 19 Jun 2023 22:35:07 +0200 Subject: [PATCH] revolt-desktop: Use Ozone if NIXOS_OZONE_WL set (cherry picked from commit 967beb212faa67b32218b112f85d959ccba13bc3) --- .../networking/instant-messengers/revolt-desktop/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/revolt-desktop/default.nix b/pkgs/applications/networking/instant-messengers/revolt-desktop/default.nix index e070fee1c3787..857614962d3e7 100644 --- a/pkgs/applications/networking/instant-messengers/revolt-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/revolt-desktop/default.nix @@ -45,7 +45,8 @@ stdenv.mkDerivation rec { postFixup = '' makeWrapper ${electron}/bin/electron $out/bin/${pname} \ - --add-flags $out/share/${pname}/resources/app.asar + --add-flags $out/share/${pname}/resources/app.asar \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" ''; meta = with lib; {