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

@ -246,8 +246,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
replaceDefaultPackage = replacePackages.${toString userCommandSettings.replace.cmd} or null;
in
{
findPackage = mkOption {
type = with types; nullOr package;
findPackage = helpers.mkPackageOption {
default = findDefaultPackage;
description = ''
Which package to install for the find command.
@ -257,8 +256,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
'';
};
replacePackage = mkOption {
type = with types; nullOr package;
replacePackage = helpers.mkPackageOption {
default = replaceDefaultPackage;
description = ''
Which package to install for the find command.