gexp: Add 'lower-gexp' and express 'gexp->derivation' in terms of it.
authorLudovic Courtès <ludo@gnu.org>
Mon, 10 Jun 2019 12:34:36 +0000 (14:34 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 4 Jul 2019 16:05:02 +0000 (18:05 +0200)
* guix/gexp.scm (gexp-input-thing, gexp-input-output)
(gexp-input-native?): Export.
(lower-inputs): Return <gexp-input> records instead of tuples.
(lower-reference-graphs): Adjust accordingly.
(<lowered-gexp>): New record type.
(lower-gexp, gexp-input->tuple): New procedure.
(gexp->derivation)[%modules]: Remove.
[requested-graft?]: New variable.
[add-modules]: New procedure.
Rewrite in terms of 'lower-gexp'.
(gexp-inputs): Add TODO comment.
* tests/gexp.scm ("lower-gexp"): New test.


No differences found