mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-18 07:18:56 +00:00
Merge pull request #316658 from symphorien/ibus_engine_option_error_message
nixos/ibus: improve error message for non-engine packages
This commit is contained in:
commit
20d8c32dbf
@ -5,8 +5,9 @@ with lib;
|
||||
let
|
||||
cfg = config.i18n.inputMethod.ibus;
|
||||
ibusPackage = pkgs.ibus-with-plugins.override { plugins = cfg.engines; };
|
||||
ibusEngine = types.package // {
|
||||
ibusEngine = lib.types.mkOptionType {
|
||||
name = "ibus-engine";
|
||||
inherit (lib.types.package) descriptionClass merge;
|
||||
check = x: (lib.types.package.check x) && (attrByPath ["meta" "isIbusEngine"] false x);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user