stdenv: checkDependencyList' now tolerates null deps

This commit is contained in:
Daniil Iaitskov
2024-04-23 12:19:42 -04:00
committed by Philip Taron
parent b5883c36db
commit 05c1f927c6

View File

@@ -318,7 +318,7 @@ let
checkDependencyList' = positions: name: deps:
imap1
(index: dep:
if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
if dep == null || isDerivation dep || builtins.isString dep || builtins.isPath dep then dep
else if isList dep then checkDependencyList' ([index] ++ positions) name dep
else throw "Dependency is not of a valid type: ${concatMapStrings (ix: "element ${toString ix} of ") ([index] ++ positions)}${name} for ${attrs.name or attrs.pname}")
deps;