mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58: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
|
@ -37,10 +37,8 @@ in
|
|||
description = "Either \"all\" or a list of languages";
|
||||
};
|
||||
|
||||
gccPackage = mkOption {
|
||||
type = with types; nullOr package;
|
||||
gccPackage = helpers.mkPackageOption {
|
||||
default = if cfg.nixGrammars then null else pkgs.gcc;
|
||||
example = null;
|
||||
description = ''
|
||||
Which package (if any) to be added as the GCC compiler.
|
||||
This is required to build grammars if you are not using `nixGrammars`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue