Skip to content
Snippets Groups Projects
Commit ae39d1b2 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

derivations: Make sure `build-expression->derivation' & co. pass `system'.

* guix/derivations.scm (imported-files): Call
  `build-expression->derivation' with SYSTEM, not (%current-system).
  (build-expression->derivation): Pass SYSTEM to `imported-modules' and
  `compiled-modules'.
parent b272c474
No related branches found
No related tags found
No related merge requests found
...@@ -498,7 +498,7 @@ (define* (imported-files store files ...@@ -498,7 +498,7 @@ (define* (imported-files store files
(mkdir ,tail)))))) (mkdir ,tail))))))
`((symlink ,store-path ,final-path))))) `((symlink ,store-path ,final-path)))))
files)))) files))))
(build-expression->derivation store name (%current-system) (build-expression->derivation store name system
builder files builder files
#:guile-for-build guile))) #:guile-for-build guile)))
...@@ -641,11 +641,15 @@ (define %build-inputs ...@@ -641,11 +641,15 @@ (define %build-inputs
(_ `(,exp)))))) (_ `(,exp))))))
(map second inputs))) (map second inputs)))
(mod-drv (and (pair? modules) (mod-drv (and (pair? modules)
(imported-modules store modules #:guile guile-drv))) (imported-modules store modules
#:guile guile-drv
#:system system)))
(mod-dir (and mod-drv (mod-dir (and mod-drv
(derivation-path->output-path mod-drv))) (derivation-path->output-path mod-drv)))
(go-drv (and (pair? modules) (go-drv (and (pair? modules)
(compiled-modules store modules #:guile guile-drv))) (compiled-modules store modules
#:guile guile-drv
#:system system)))
(go-dir (and go-drv (go-dir (and go-drv
(derivation-path->output-path go-drv)))) (derivation-path->output-path go-drv))))
(derivation store name system guile (derivation store name system guile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment