We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e35aed5 + 6c2316d commit 70f5040Copy full SHA for 70f5040
modules/hook.nix
@@ -46,6 +46,7 @@ in
46
47
package = mkOption {
48
type = types.nullOr types.package;
49
+ default = null;
50
description = lib.mdDoc
51
''
52
An optional package that provides the hook.
modules/pre-commit.nix
@@ -138,7 +138,7 @@ in
138
Useful for including into the developer environment.
139
'';
140
141
- default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable) (builtins.attrValues config.hooks));
+ default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable && hook.package != null) (builtins.attrValues config.hooks));
142
};
143
144
hooks =
0 commit comments