Previously, ‘--system=’ did not affect profile hooks, meaning that all packages would be built for both the host and requested systems.
* guix/scripts/environment.scm (guix-environment*): Parameterize %current-system to match the requested ‘--system=’. Reported by ekaitz in #guix. --- guix/scripts/environment.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 9712389842..27f7e53549 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -1146,7 +1146,8 @@ (define (guix-environment* opts) (warning (G_ "no packages specified; creating an empty environment~%"))) ;; Use the bootstrap Guile when requested. - (parameterize ((%graft? (assoc-ref opts 'graft?)) + (parameterize ((%current-system system) + (%graft? (assoc-ref opts 'graft?)) (%guile-for-build (and store-needed? (package-derivation base-commit: 9e71d4fd6b3893ae87cb079b57d7a8fe6e9e7914 -- 2.41.0