mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 11:35:37 +03: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
1 changed files with 2 additions and 1 deletions
|
@ -5,8 +5,9 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.i18n.inputMethod.ibus;
|
cfg = config.i18n.inputMethod.ibus;
|
||||||
ibusPackage = pkgs.ibus-with-plugins.override { plugins = cfg.engines; };
|
ibusPackage = pkgs.ibus-with-plugins.override { plugins = cfg.engines; };
|
||||||
ibusEngine = types.package // {
|
ibusEngine = lib.types.mkOptionType {
|
||||||
name = "ibus-engine";
|
name = "ibus-engine";
|
||||||
|
inherit (lib.types.package) descriptionClass merge;
|
||||||
check = x: (lib.types.package.check x) && (attrByPath ["meta" "isIbusEngine"] false x);
|
check = x: (lib.types.package.check x) && (attrByPath ["meta" "isIbusEngine"] false x);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue