misc: allow null in extraPackages

This commit is contained in:
Gaetan Lepage 2024-04-23 16:41:27 +02:00 committed by Gaétan Lepage
parent c826d146c6
commit f2f97d844b
13 changed files with 22 additions and 39 deletions

View file

@ -213,12 +213,11 @@ in {
if cfg.nixGrammars
then [(cfg.package.withPlugins (_: cfg.grammarPackages))]
else [cfg.package];
extraPackages = with pkgs;
[
tree-sitter
nodejs
]
++ optional (cfg.gccPackage != null) cfg.gccPackage;
extraPackages = with pkgs; [
tree-sitter
nodejs
cfg.gccPackage
];
opts = mkIf cfg.folding {
foldmethod = "expr";