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:
parent
ee14f8da9a
commit
84a7a09bc8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue