3
0
Fork 0
forked from mirrors/nixpkgs

Try to improve naming of list elements in loaOf types

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2014-02-08 15:20:15 -05:00
parent ee14f8da9a
commit 84a7a09bc8

View file

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