lib.generators.toKDL: fix _children not being applied on root level
This commit is contained in:
parent
360620ec9d
commit
3912c447ee
1 changed files with 9 additions and 1 deletions
|
|
@ -203,7 +203,15 @@
|
|||
else if vType == "set" then
|
||||
convertAttrsToKDL name value
|
||||
else if vType == "list" then
|
||||
convertListToKDL name value
|
||||
if name == "_children" then
|
||||
concatStringsSep "\n" (
|
||||
map (lib.flip lib.pipe [
|
||||
(mapAttrsToList convertAttributeToKDL)
|
||||
(concatStringsSep "\n")
|
||||
]) value
|
||||
)
|
||||
else
|
||||
convertListToKDL name value
|
||||
else
|
||||
throw ''
|
||||
Cannot convert type `(${typeOf value})` to KDL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue