mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 19:41:50 +02:00
environment: Set 'GUIX_ENVIRONMENT' to the profile.
* guix/scripts/environment.scm (create-environment): Set 'GUIX_ENVIRONMENT' to PROFILE. * tests/guix-environment.sh: Test it. * doc/guix.texi (Invoking guix environment): Document it.
This commit is contained in:
@@ -57,6 +57,10 @@ else
|
||||
test $? = 42
|
||||
fi
|
||||
|
||||
# Make sure 'GUIX_ENVIRONMENT' points to the profile.
|
||||
guix environment --bootstrap --ad-hoc guile-bootstrap --pure \
|
||||
-- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"'
|
||||
|
||||
case "`uname -m`" in
|
||||
x86_64)
|
||||
# On x86_64, we should be able to create a 32-bit environment.
|
||||
|
||||
Reference in New Issue
Block a user