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:
parent
75110f8b6d
commit
5dbf1419fe
|
@ -17,6 +17,7 @@
|
||||||
# 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";
|
||||||
|
@ -128,6 +129,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}}"
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
|
Loading…
Reference in New Issue
Block a user