vesktop: IME with NIXOS_OZONE_WL

This moves the `--enable-wayland-ime` flag to NIXOS_OZONE_WL instead of
having a separate option for it.
This commit is contained in:
LilleAila 2024-04-24 15:17:34 +02:00
parent 5dbf1419fe
commit 3d2f4980b7

View file

@ -17,7 +17,6 @@
# Enables the use of vencord from nixpkgs instead of # Enables the use of vencord from nixpkgs instead of
# letting vesktop manage it's own version # letting vesktop manage it's own version
, withSystemVencord ? true , withSystemVencord ? true
, withWaylandIME ? false
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "vesktop"; pname = "vesktop";
@ -129,8 +128,7 @@ stdenv.mkDerivation (finalAttrs: {
makeWrapper ${electron}/bin/electron $out/bin/vesktop \ makeWrapper ${electron}/bin/electron $out/bin/vesktop \
--add-flags $out/opt/Vesktop/resources/app.asar \ --add-flags $out/opt/Vesktop/resources/app.asar \
${lib.optionalString withTTS "--add-flags \"--enable-speech-dispatcher\""} \ ${lib.optionalString withTTS "--add-flags \"--enable-speech-dispatcher\""} \
${lib.optionalString withWaylandIME "--add-flags \"--enable-wayland-ime\""} \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
runHook postInstall runHook postInstall
''; '';