Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

fcitx: show available engines in module description

+8 -4
+8 -4
nixos/modules/i18n/inputMethod/fcitx.nix
··· 18 type = with types; listOf fcitxEngine; 19 default = []; 20 example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]"; 21 - description = '' 22 - Enabled Fcitx engines. 23 - Available engines can be found by running `nix-env "<nixpkgs>" . -qaP -A fcitx-engines`. 24 - ''; 25 }; 26 }; 27
··· 18 type = with types; listOf fcitxEngine; 19 default = []; 20 example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]"; 21 + description = 22 + let 23 + engines = 24 + lib.concatStringsSep ", " 25 + (map (name: "<literal>${name}</literal>") 26 + (lib.attrNames pkgs.fcitx-engines)); 27 + in 28 + "Enabled Fcitx engines. Available engines are: ${engines}."; 29 }; 30 }; 31