about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/slack
diff options
context:
space:
mode:
authorWout Mertens <Wout.Mertens@gmail.com>2021-11-27 01:54:14 +0100
committerWout Mertens <Wout.Mertens@gmail.com>2022-01-27 09:46:36 +0100
commitb2eb5f62a7fd94ab58acafec9f64e54f97c508a6 (patch)
tree5e0da9b66e9b8751795208922e6a56c8cf353691 /pkgs/applications/networking/instant-messengers/slack
parente722007bf05802573b41701c49da6c8814878171 (diff)
wayland: enable ozone via $NIXOS_OZONE_WL
Chrome, Chromium, VSCode, Slack, Signal, Discord, element-desktop,
schildichat.

For the latter two, the feature flag useWayland was removed and a
wrapper script was provided.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/slack')
-rw-r--r--pkgs/applications/networking/instant-messengers/slack/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/slack/default.nix b/pkgs/applications/networking/instant-messengers/slack/default.nix
index 5e0175518716c..2ba8fcf579c93 100644
--- a/pkgs/applications/networking/instant-messengers/slack/default.nix
+++ b/pkgs/applications/networking/instant-messengers/slack/default.nix
@@ -84,7 +84,7 @@ let
     homepage = "https://slack.com";
     license = licenses.unfree;
     maintainers = with maintainers; [ mmahut ];
-    platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin"];
+    platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ];
   };
 
   linux = stdenv.mkDerivation rec {
@@ -170,7 +170,8 @@ let
       rm $out/bin/slack
       makeWrapper $out/lib/slack/slack $out/bin/slack \
         --prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
-        --prefix PATH : ${lib.makeBinPath [xdg-utils]}
+        --prefix PATH : ${lib.makeBinPath [xdg-utils]} \
+        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
 
       # Fix the desktop link
       substituteInPlace $out/share/applications/slack.desktop \