Skip to content

Commit 6c2316d

Browse files
committed
Filter out nulls from enabledPackages
1 parent eb9778d commit 6c2316d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/pre-commit.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ in
138138
Useful for including into the developer environment.
139139
'';
140140

141-
default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable) (builtins.attrValues config.hooks));
141+
default = builtins.map (hook: hook.package) (lib.filter (hook: hook.enable && hook.package != null) (builtins.attrValues config.hooks));
142142
};
143143

144144
hooks =

0 commit comments

Comments
 (0)