tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
fcitx: show available engines in module description
Thomas Tuegel
10 years ago
efad7bd4
a91161aa
+8
-4
1 changed file
expand all
collapse all
unified
split
nixos
modules
i18n
inputMethod
fcitx.nix
+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
-
'';
0
0
0
0
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