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
1 changed files with 8 additions and 4 deletions

View File

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