1
0
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:
Ludovic Courtès
2016-07-26 17:59:25 +02:00
parent 8173ceee1f
commit 201855221f
3 changed files with 16 additions and 3 deletions
+4
View File
@@ -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.