stdenv: checkDependencyList' now tolerates null deps
This commit is contained in:
committed by
Philip Taron
parent
b5883c36db
commit
05c1f927c6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user