gexp: Add '=>' syntax to import computed modules.
authorLudovic Courtès <ludo@gnu.org>
Wed, 15 Mar 2017 21:14:36 +0000 (22:14 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 16 Mar 2017 21:50:14 +0000 (22:50 +0100)
commitd938a58beefc669ab340aa1aeab49df3dc24d123
treeebded7f194fee4e51b277c157258082b942aea09
parent4c0c4db0702048488a9712dbba7cad862c667d54
gexp: Add '=>' syntax to import computed modules.

* guix/gexp.scm (imported-files)[file-pair]: Add case for pairs where
the cdr is not a string.
(imported-modules): Support '=>' syntax in MODULES.
* tests/gexp.scm ("imported-files with file-like objects")
("gexp->derivation & with-imported-module & computed module"): New tests.
* doc/guix.texi (G-Expressions): Document '=>' syntax for
'with-imported-modules'.
doc/guix.texi
guix/gexp.scm
tests/gexp.scm