1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/nixos/modules/i18n/input-method
Guillaume Girol 470ab4f971 nixos/ibus: improve error message for non-engine packages
when setting the option i18n.inputMethod.ibus.engines to a non-engine, like this:
    i18n.inputMethod.ibus.engines = [ pkgs.sl ];

the error message would be quite misleading:

error: A definition for option `nodes.machine.i18n.inputMethod.ibus.engines."[definition 1-entry 1]"' is not of type `package'. Definition values:
- In `makeTest parameters': <derivation sl-5.05>

sl is rejected and yet it *is* a package.

This change improves the error message to this:
error: A definition for option `nodes.machine.i18n.inputMethod.ibus.engines."[definition 1-entry 1]"' is not of type `ibus-engine'. Definition values:
- In `makeTest parameters': <derivation sl-5.05>
2024-06-02 12:00:00 +00:00
..
default.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
default.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
fcitx5.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
hime.nix
ibus.nix nixos/ibus: improve error message for non-engine packages 2024-06-02 12:00:00 +00:00
kime.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
nabi.nix
uim.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00