Adding a list-in-list checker for builderDefs closePropagation
svn path=/nixpkgs/branches/stdenv-updates/; revision=23608
This commit is contained in:
parent
52f4540026
commit
32071d5b4d
@ -215,11 +215,15 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
innerClosePropagation = ready: list: if list == [] then ready else
|
innerClosePropagation = ready: list: if list == [] then ready else
|
||||||
innerClosePropagation
|
if ! isAttrs (head list) then
|
||||||
(ready ++ [(head list)])
|
builtins.trace ("not an attrSet: ${lib.showVal (head list)}")
|
||||||
((tail list)
|
innerClosePropagation ready (tail list)
|
||||||
++ (maybeAttrNullable "propagatedBuildInputs" [] (head list))
|
else
|
||||||
++ (maybeAttrNullable "propagatedBuildNativeInputs" [] (head list)));
|
innerClosePropagation
|
||||||
|
(ready ++ [(head list)])
|
||||||
|
((tail list)
|
||||||
|
++ (maybeAttrNullable "propagatedBuildInputs" [] (head list))
|
||||||
|
++ (maybeAttrNullable "propagatedBuildNativeInputs" [] (head list)));
|
||||||
|
|
||||||
closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);});
|
closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user