environment: Add '--root' option.
authorLudovic Courtès <ludo@gnu.org>
Tue, 20 Dec 2016 18:06:22 +0000 (19:06 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 20 Dec 2016 18:14:41 +0000 (19:14 +0100)
commitf943c317fb714075b455d4a30f631c8cb45732b4
tree7f70c29bb007f7e81f0e2884d1307237de59e6b2
parent7d2511bc6b467c056e7e0bcb0760f7b9652ba083
environment: Add '--root' option.

* guix/scripts/environment.scm (show-help, %options): Add --root.
(register-gc-root): New procedure.
(guix-environment): Call 'register-gc-root' when OPTS has a 'gc-root'
option.
* doc/guix.texi (Invoking guix environment): Document it.
* tests/guix-environment.sh: Add tests.
doc/guix.texi
guix/scripts/environment.scm
tests/guix-environment.sh