mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user