mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lib/options: introduce new mkPackageOption for dependencies
This commit is contained in:
parent
26367692da
commit
7c4fe30f81
15 changed files with 51 additions and 85 deletions
|
@ -64,24 +64,14 @@ helpers.vim-plugin.mkVimPlugin config {
|
|||
};
|
||||
|
||||
extraOptions = {
|
||||
gitPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
gitPackage = helpers.mkPackageOption {
|
||||
name = "git";
|
||||
default = pkgs.git;
|
||||
example = null;
|
||||
description = ''
|
||||
The `git` package to use.
|
||||
Set to `null` to not install any package.
|
||||
'';
|
||||
};
|
||||
|
||||
lazygitPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
lazygitPackage = helpers.mkPackageOption {
|
||||
name = "lazygit";
|
||||
default = pkgs.lazygit;
|
||||
example = null;
|
||||
description = ''
|
||||
The `lazygit` package to use.
|
||||
Set to `null` to not install any package.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue