Ludovic Courtès writes: > David Thompson skribis: > >> From 26cac530c7a1f69864fc819bdc14553eacd9dc23 Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Sun, 21 Sep 2014 13:40:05 -0400 >> Subject: [PATCH] scripts: Add 'environment' command. >> >> * guix/scripts/environment.scm: New file. >> * Makefile.am (MODULES): Add it. >> * doc/guix.texi ("Invoking guix environment"): New node. > > Nice! > > I didn’t mention it before but it would be wonderful if you could come > up with a little test case. It’s a bit difficult, esp. since the tests > cannot assume that will download & build the world. So basically the > test could do, in a tests/guix-environment.sh script: > > guix environment -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' ... > > and make sure it at least sees ‘guile’ in $PATH. > > WDYT? That can come in a later commit if you prefer. > Hmm, it's actually a bit trickier than that because the bootstrap guile has no inputs, so the resulting purified environment is completely empty. In the meantime, the changes to the docs made sense, so here's an updated patch with those changes.