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

@ -41,13 +41,9 @@ helpers.neovim-plugin.mkNeovimPlugin config {
inherit settingsOptions settingsExample;
extraOptions = {
fzfPackage = mkOption {
type = with types; nullOr package;
fzfPackage = helpers.mkPackageOption {
name = "fzf";
default = pkgs.fzf;
description = ''
The fzf package to use.
Set to `null` to not install any package.
'';
example = pkgs.skim;
};