environment: Honor ‘-s’ for guile-for-build.

Partly fixes <https://issues.guix.gnu.org/65225>.

* guix/scripts/environment.scm (guix-environment*): Pass SYSTEM to
‘package-derivation’ when defining ‘%guile-for-build’.

Reported-by: Simon Tournier <zimon.toutoune@gmail.com>
Change-Id: I9d883f1e61fac72754fdc9dee9b7c8a3dea32add
This commit is contained in:
Ludovic Courtès 2023-10-28 00:09:55 +02:00
parent 67effc1560
commit b3ec2a0d37
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1153,7 +1153,8 @@ (define manifest
store
(if bootstrap?
%bootstrap-guile
(default-guile))))))
(default-guile))
system))))
(run-with-store store
;; Containers need a Bourne shell at /bin/sh.
(mlet* %store-monad ((bash (environment-bash container?