import/json: json->code: Handle files with more than one definition.
authorRicardo Wurmus <rekado@elephly.net>
Tue, 14 Apr 2020 22:43:39 +0000 (00:43 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 16 Apr 2020 21:41:52 +0000 (23:41 +0200)
commit7cef499bb060aabf3d59cc4eca37350e5c79ff7d
treeacf8511d8a652f4249e6a457c75f35bd3dc1ddbc
parent3532fc39fff41eabd061370ee36a1d42b9fac0e6
import/json: json->code: Handle files with more than one definition.

* guix/import/json.scm (json->code): Convert JSON arrays to lists of package
definitions.
(json->scheme-file): Write all expressions to the target file.
guix/import/json.scm