diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-04-04 17:18:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-04 17:47:02 +0200 |
commit | a31174e896047e6a0f42b69db331fdeebb3cc995 (patch) | |
tree | 63091a0cf4937f4b43df10eb219a9751a3de0781 /guix/packages.scm | |
parent | aff0cce9175aaf836dd78941eb17549e3bfa7188 (diff) | |
download | gnu-guix-a31174e896047e6a0f42b69db331fdeebb3cc995.tar gnu-guix-a31174e896047e6a0f42b69db331fdeebb3cc995.tar.gz |
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'.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r-- | guix/packages.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index c2981dda8b..c94a651f27 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -642,6 +642,9 @@ specifies modules in scope when evaluating SNIPPET." (let ((name (tarxz-name original-file-name))) (gexp->derivation name build + ;; TODO: Remove this on the next rebuild cycle. + #:pre-load-modules? #f + #:graft? #f #:system system #:deprecation-warnings #t ;to avoid a rebuild |