aboutsummaryrefslogtreecommitdiff
path: root/guix/profiles.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2019-12-24 15:04:57 +0100
committerMathieu Othacehe <m.othacehe@gmail.com>2019-12-26 20:02:16 +0100
commit91be09de61c277d0f1b26cefcefcd0a7fae2e00d (patch)
tree457a9acfd54b52ba3c33d4d9601b9bd6af669b71 /guix/profiles.scm
parent3d8c77836b73ae8284c673eabdae7f0880d70a8d (diff)
downloadguix-91be09de61c277d0f1b26cefcefcd0a7fae2e00d.tar
guix-91be09de61c277d0f1b26cefcefcd0a7fae2e00d.tar.gz
profiles: Fix profile-derivation cross-compilation.
* guix/store.scm (current-target-system): New exported monadic procedure. * guix/profiles.scm (profile-derivation): Set target at bind time using the above procedure.
Diffstat (limited to 'guix/profiles.scm')
-rw-r--r--guix/profiles.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 987bab4e7f..d20f06e7b3 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2017 Huang Ying <huang.ying.caritas@gmail.com>
;;; Copyright © 2017 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
+;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1459,6 +1460,9 @@ are cross-built for TARGET."
(mlet* %store-monad ((system (if system
(return system)
(current-system)))
+ (target (if target
+ (return target)
+ (current-target-system)))
(ok? (if allow-collisions?
(return #t)
(check-for-collisions manifest system