slack: fix feature flags

The `--enable-features` flag should only be specified once as the final
one will take precedence.
This commit is contained in:
Steven Kou
2023-03-16 17:40:34 +08:00
parent ae65ff26ac
commit e396c6e6a9
@@ -172,8 +172,7 @@ let
makeWrapper $out/lib/slack/slack $out/bin/slack \
--prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
--suffix PATH : ${lib.makeBinPath [xdg-utils]} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags "\''${WAYLAND_DISPLAY:+--enable-features=WebRTCPipeWireCapturer}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer}}"
# Fix the desktop link
substituteInPlace $out/share/applications/slack.desktop \