pack: Pass the cross-compilation target to 'run-with-store'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 3 Apr 2020 19:51:12 +0000 (21:51 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 3 Apr 2020 21:06:43 +0000 (23:06 +0200)
This ensures '%current-target-system' is correctly bound upfront, which
some packages rely on.

* guix/scripts/pack.scm (guix-pack): Pass #:target to 'run-with-store'.

guix/scripts/pack.scm

index f641f53..6d63fb4 100644 (file)
@@ -1128,4 +1128,5 @@ to your package list.")))
                                         gc-root))
                       (return (format #t "~a~%"
                                       (derivation->output-path drv))))))
+                #:target target
                 #:system (assoc-ref opts 'system)))))))))