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.
This commit is contained in:
LilleAila 2024-04-23 17:11:52 +02:00
parent 75110f8b6d
commit 5dbf1419fe

View File

@ -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