gexp: Add 'with-parameters'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 6 Mar 2020 10:25:43 +0000 (11:25 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 12 Mar 2020 17:32:15 +0000 (18:32 +0100)
commitcf2ac04f13d9266c7c8a2ebd2e85ef593231ac9d
tree409921980504c7138e4dac8769823fb50becc516
parentbe78906592c761aa2a67e979074561e459efdcac
gexp: Add 'with-parameters'.

* guix/gexp.scm (<parameterized>): New record type.
(with-parameters): New macro.
(compile-parameterized): New gexp compiler.
* tests/gexp.scm ("with-parameters for %current-system")
("with-parameters for %current-target-system")
("with-parameters + file-append"): New tests.
* doc/guix.texi (G-Expressions): Document it.
.dir-locals.el
doc/guix.texi
guix/gexp.scm
tests/gexp.scm