about summary refs log tree commit diff
path: root/pkgs/by-name/ve/vesktop/package.nix
diff options
context:
space:
mode:
authorLilleAila <olai.solsvik@gmail.com>2024-04-23 17:11:52 +0200
committerLilleAila <olai.solsvik@gmail.com>2024-04-23 17:14:04 +0200
commit5dbf1419fecf2bf7858fdce662641ec3b0134e3d (patch)
treed1e209c648ff95d31a9d0b84778573e8a9cb77fb /pkgs/by-name/ve/vesktop/package.nix
parent75110f8b6d86fddb37766b4a30901bd08471e020 (diff)
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.
Diffstat (limited to 'pkgs/by-name/ve/vesktop/package.nix')
-rw-r--r--pkgs/by-name/ve/vesktop/package.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/by-name/ve/vesktop/package.nix b/pkgs/by-name/ve/vesktop/package.nix
index 980258ed863a4..b35f53579b45f 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