lib/options: introduce new mkPackageOption for dependencies

This commit is contained in:
Gaetan Lepage 2024-05-17 14:39:55 +02:00 committed by Gaétan Lepage
parent 26367692da
commit 7c4fe30f81
15 changed files with 51 additions and 85 deletions

View file

@ -2,6 +2,7 @@
lib,
config,
pkgs,
helpers,
...
}:
with lib;
@ -12,14 +13,9 @@ in
meta.maintainers = [ maintainers.GaetanLepage ];
options.plugins.cmp-fish = {
fishPackage = mkOption {
type = with types; nullOr package;
fishPackage = helpers.mkPackageOption {
name = "fish";
default = pkgs.fish;
example = "null";
description = ''
Which package to use for `fish`.
Set to `null` to disable its automatic installation.
'';
};
};