loaOf: Allow merging definitions from a list into other definitions IFF there is a name attribute

This commit is contained in:
Shea Levy 2014-02-20 10:40:49 -05:00
parent 3c871ccbc9
commit 83c98e4dd6

View File

@ -132,7 +132,7 @@ rec {
{ inherit (def) file;
value = listToAttrs (
imap (elemIdx: elem:
{ name = "${elem.name or "unnamed"}-${toString defIdx}.${toString elemIdx}";
{ name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}";
value = elem;
}) def.value);
}