ibus: add engine list to module description

This commit is contained in:
Thomas Tuegel 2016-02-26 18:43:54 -06:00
parent 2383a708f6
commit 639c6b91a9

View file

@ -28,10 +28,14 @@ in
type = with types; listOf ibusEngine;
default = [];
example = literalExample "with pkgs.ibus-engines; [ mozc hangul ]";
description = ''
Enabled IBus engines.
Available engines can be found by running `nix-env "<nixpkgs>" . -qaP -A ibus-engines`.
'';
description =
let
engines =
lib.concatStringsSep ", "
(map (name: "<literal>${name}</literal>")
(lib.attrNames pkgs.ibus-engines));
in
"Enabled IBus engines. Available engines are: ${engines}.";
};
};
};