mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/fcitx5: fix quickphrase
This commit is contained in:
parent
9e09ce2d47
commit
6975dea4d3
1 changed files with 5 additions and 3 deletions
|
@ -117,9 +117,11 @@ in
|
||||||
i18n.inputMethod.fcitx5.addons =
|
i18n.inputMethod.fcitx5.addons =
|
||||||
lib.optionals (cfg.quickPhrase != { }) [
|
lib.optionals (cfg.quickPhrase != { }) [
|
||||||
(pkgs.writeTextDir "share/fcitx5/data/QuickPhrase.mb" (
|
(pkgs.writeTextDir "share/fcitx5/data/QuickPhrase.mb" (
|
||||||
lib.mapAttrsToList (
|
lib.concatStringsSep "\n" (
|
||||||
name: value: "${name} ${builtins.replaceStrings [ "\\" "\n" ] [ "\\\\" "\\n" ] value}"
|
lib.mapAttrsToList (
|
||||||
) cfg.quickPhrase
|
name: value: "${name} ${builtins.replaceStrings [ "\\" "\n" ] [ "\\\\" "\\n" ] value}"
|
||||||
|
) cfg.quickPhrase
|
||||||
|
)
|
||||||
))
|
))
|
||||||
]
|
]
|
||||||
++ lib.optionals (cfg.quickPhraseFiles != { }) [
|
++ lib.optionals (cfg.quickPhraseFiles != { }) [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue