summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-04-03 21:51:12 +0200
committerLudovic Courtès <ludo@gnu.org>2020-04-03 23:06:43 +0200
commitf7b5b8cd45b4560b3473dde2e6f6f20b4ff9daff (patch)
treeb636a3de34ceaf1f7226ebc789c95e8b5927966b
parentc1c50cb5b099897a18e4cd8c27970cb45a7c3a94 (diff)
downloadpatches-f7b5b8cd45b4560b3473dde2e6f6f20b4ff9daff.tar
patches-f7b5b8cd45b4560b3473dde2e6f6f20b4ff9daff.tar.gz
pack: Pass the cross-compilation target to 'run-with-store'.
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'.
-rw-r--r--guix/scripts/pack.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index f641f535b9..6d63fb4b90 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -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)))))))))