Adding a list-in-list checker for builderDefs closePropagation

svn path=/nixpkgs/branches/stdenv-updates/; revision=23608
This commit is contained in:
Michael Raskin 2010-09-03 08:15:45 +00:00
parent 52f4540026
commit 32071d5b4d

View file

@ -215,11 +215,15 @@ rec {
innerClosePropagation = ready: list: if list == [] then ready else
innerClosePropagation
(ready ++ [(head list)])
((tail list)
++ (maybeAttrNullable "propagatedBuildInputs" [] (head list))
++ (maybeAttrNullable "propagatedBuildNativeInputs" [] (head list)));
if ! isAttrs (head list) then
builtins.trace ("not an attrSet: ${lib.showVal (head list)}")
innerClosePropagation ready (tail list)
else
innerClosePropagation
(ready ++ [(head list)])
((tail list)
++ (maybeAttrNullable "propagatedBuildInputs" [] (head list))
++ (maybeAttrNullable "propagatedBuildNativeInputs" [] (head list)));
closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);});