diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-07-03 22:26:19 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-07-12 22:47:08 +0200 |
commit | 0bb9929eaa3f963ae75478e789723f9e8582116b (patch) | |
tree | 570de4e4ed75c040bd5f2175285cb02b9a5324e8 /gnu/services/xorg.scm | |
parent | affd7761f3b38f7d5670a4e91fefef72174621cc (diff) | |
download | gnu-guix-0bb9929eaa3f963ae75478e789723f9e8582116b.tar gnu-guix-0bb9929eaa3f963ae75478e789723f9e8582116b.tar.gz |
gexp: Add 'with-imported-modules' macro.
* guix/gexp.scm (<gexp>)[modules]: New field.
(gexp-modules): New procedure.
(gexp->derivation): Use it and append the result to %MODULES.
Update docstring to mark #:modules as deprecated.
(current-imported-modules, with-imported-modules): New macros.
(gexp): Pass CURRENT-IMPORTED-MODULES as second argument to 'gexp'.
(gexp->script): Use and honor 'gexp-modules'; define '%modules'.
* tests/gexp.scm ("gexp->derivation & with-imported-modules")
("gexp->derivation & nested with-imported-modules")
("gexp-modules & ungexp", "gexp-modules & ungexp-splicing"):
New tests.
("program-file"): Use 'with-imported-modules'. Remove #:modules
argument to 'program-file'.
* doc/guix.texi (G-Expressions): Document 'with-imported-modules'.
Mark #:modules of 'gexp->derivation' as deprecated.
* emacs/guix-devel.el: Add syntax for 'with-imported-modules'.
(guix-devel-keywords): Add it.
* .dir-locals.el: Likewise.
Diffstat (limited to 'gnu/services/xorg.scm')
0 files changed, 0 insertions, 0 deletions