vm: Use 'with-extensions'.
* gnu/system/vm.scm (system-docker-image)[build]: Use 'with-extensions'. Remove 'add-to-load-path' calls.
This commit is contained in:
parent
331ac4cc23
commit
9f160a0d3c
|
@ -410,21 +410,20 @@ should set REGISTER-CLOSURES? to #f."
|
||||||
(eval-when (expand load eval)
|
(eval-when (expand load eval)
|
||||||
(define %libgcrypt
|
(define %libgcrypt
|
||||||
#+(file-append libgcrypt "/lib/libgcrypt"))))))
|
#+(file-append libgcrypt "/lib/libgcrypt"))))))
|
||||||
|
|
||||||
(mlet %store-monad ((os-drv (operating-system-derivation os #:container? #t))
|
(mlet %store-monad ((os-drv (operating-system-derivation os #:container? #t))
|
||||||
(name -> (string-append name ".tar.gz"))
|
(name -> (string-append name ".tar.gz"))
|
||||||
(graph -> "system-graph"))
|
(graph -> "system-graph"))
|
||||||
(define build
|
(define build
|
||||||
(with-imported-modules `(,@(source-module-closure '((guix docker)
|
(with-extensions (list guile-json) ;for (guix docker)
|
||||||
|
(with-imported-modules `(,@(source-module-closure
|
||||||
|
'((guix docker)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(gnu build vm))
|
(gnu build vm))
|
||||||
#:select? not-config?)
|
#:select? not-config?)
|
||||||
(guix build store-copy)
|
(guix build store-copy)
|
||||||
((guix config) => ,config))
|
((guix config) => ,config))
|
||||||
#~(begin
|
#~(begin
|
||||||
;; Guile-JSON is required by (guix docker).
|
|
||||||
(add-to-load-path
|
|
||||||
(string-append #+guile-json "/share/guile/site/"
|
|
||||||
(effective-version)))
|
|
||||||
(use-modules (guix docker)
|
(use-modules (guix docker)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(gnu build vm)
|
(gnu build vm)
|
||||||
|
@ -461,7 +460,7 @@ should set REGISTER-CLOSURES? to #f."
|
||||||
#$os-drv
|
#$os-drv
|
||||||
#:compressor '(#+(file-append gzip "/bin/gzip") "-9n")
|
#:compressor '(#+(file-append gzip "/bin/gzip") "-9n")
|
||||||
#:creation-time (make-time time-utc 0 1)
|
#:creation-time (make-time time-utc 0 1)
|
||||||
#:transformations `((,root-directory -> "")))))))
|
#:transformations `((,root-directory -> ""))))))))
|
||||||
(expression->derivation-in-linux-vm
|
(expression->derivation-in-linux-vm
|
||||||
name
|
name
|
||||||
;; The VM's initrd Guile doesn't support dlopen, but our "build" gexp
|
;; The VM's initrd Guile doesn't support dlopen, but our "build" gexp
|
||||||
|
|
Loading…
Reference in New Issue