From 5dbf1419fecf2bf7858fdce662641ec3b0134e3d Mon Sep 17 00:00:00 2001 From: LilleAila Date: Tue, 23 Apr 2024 17:11:52 +0200 Subject: [PATCH] vesktop: wayland IME option This commit adds an option to wrap the resulting program with the `--enable-wayland-ime` argument, so that IME support on wayland can be enabled in the package. --- pkgs/by-name/ve/vesktop/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ve/vesktop/package.nix b/pkgs/by-name/ve/vesktop/package.nix index 980258ed863a..b35f53579b45 100644 --- a/pkgs/by-name/ve/vesktop/package.nix +++ b/pkgs/by-name/ve/vesktop/package.nix @@ -17,6 +17,7 @@ # Enables the use of vencord from nixpkgs instead of # letting vesktop manage it's own version , withSystemVencord ? true +, withWaylandIME ? false }: stdenv.mkDerivation (finalAttrs: { pname = "vesktop"; @@ -128,6 +129,7 @@ stdenv.mkDerivation (finalAttrs: { makeWrapper ${electron}/bin/electron $out/bin/vesktop \ --add-flags $out/opt/Vesktop/resources/app.asar \ ${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}}" runHook postInstall