diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-02-27 06:20:19 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-02-28 07:12:55 -0600 |
commit | efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200 (patch) | |
tree | 2647c0594e5931e4e0032c34bff4883b02737f3d /nixos/modules/i18n | |
parent | a91161aa57f7cfe447a551bafc2d7c6c6bbbe44b (diff) | |
download | nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar.gz nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar.bz2 nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar.lz nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar.xz nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.tar.zst nixpkgs-efad7bd47d3e2864ba2c28c2fd5ec0bd22dd9200.zip |
fcitx: show available engines in module description
Diffstat (limited to 'nixos/modules/i18n')
-rw-r--r-- | nixos/modules/i18n/inputMethod/fcitx.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/modules/i18n/inputMethod/fcitx.nix b/nixos/modules/i18n/inputMethod/fcitx.nix index f73554b3edd..8e31743504f 100644 --- a/nixos/modules/i18n/inputMethod/fcitx.nix +++ b/nixos/modules/i18n/inputMethod/fcitx.nix @@ -18,10 +18,14 @@ in type = with types; listOf fcitxEngine; default = []; example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]"; - description = '' - Enabled Fcitx engines. - Available engines can be found by running `nix-env "<nixpkgs>" . -qaP -A fcitx-engines`. - ''; + description = + let + engines = + lib.concatStringsSep ", " + (map (name: "<literal>${name}</literal>") + (lib.attrNames pkgs.fcitx-engines)); + in + "Enabled Fcitx engines. Available engines are: ${engines}."; }; }; |