gexp: 'compiled-modules' loads modules before compiling them.
authorLudovic Courtès <ludo@gnu.org>
Thu, 4 Apr 2019 15:18:06 +0000 (17:18 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 4 Apr 2019 15:47:02 +0000 (17:47 +0200)
commita31174e896047e6a0f42b69db331fdeebb3cc995
tree63091a0cf4937f4b43df10eb219a9751a3de0781
parentaff0cce9175aaf836dd78941eb17549e3bfa7188
gexp: 'compiled-modules' loads modules before compiling them.

This works around <https://bugs.gnu.org/15602> in the context of
modules specified with 'with-imported-modules'.

* guix/gexp.scm (gexp->derivation): Add #:pre-load-modules? parameter
and pass it to 'compiled-modules'.
(compiled-modules): Add #:pre-load-modules? parameter and honor it.
* guix/packages.scm (patch-and-repack): Pass #:pre-load-modules? to
'gexp->derivation'.
guix/gexp.scm
guix/packages.scm