Commit 5dbf1419 authored by LilleAila's avatar LilleAila
Browse files

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.
parent 75110f8b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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