mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 05:59:17 +03:00
loaOf: Allow merging definitions from a list into other definitions IFF there is a name attribute
This commit is contained in:
parent
3c871ccbc9
commit
83c98e4dd6
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ rec {
|
||||||
{ inherit (def) file;
|
{ inherit (def) file;
|
||||||
value = listToAttrs (
|
value = listToAttrs (
|
||||||
imap (elemIdx: elem:
|
imap (elemIdx: elem:
|
||||||
{ name = "${elem.name or "unnamed"}-${toString defIdx}.${toString elemIdx}";
|
{ name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}";
|
||||||
value = elem;
|
value = elem;
|
||||||
}) def.value);
|
}) def.value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue