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:
Masum Reza 2024-07-12 18:18:21 +05:30 committed by GitHub
commit 20d8c32dbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
};