summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2015-05-28 08:41:04 -0400
committerDavid Thompson <davet@gnu.org>2015-05-28 20:52:52 -0400
commita54bd6d72dc91f649fb2b6cb3c612da1639d9b72 (patch)
tree456b1e40daa35dccff6d43d20f0abbab5584f6f2 /doc
parent1ba4796d135ba7a07f2e89126fba673601c321c2 (diff)
guix environment: Add --ad-hoc option.
* guix/scripts/environment.scm (%options): Add "ad-hoc" option. (show-help): Display help for "--ad-hoc". (packages+propagated-inputs): New procedure. (guix-environment): Create ad hoc environment when asked. * doc/guix.texi ("invoking guix environment"): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi17
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 1956dbc422d..2d10ec9b598 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2381,7 +2381,7 @@ the @code{#:haddock-flags} parameter. If the file @code{Setup.hs} is
2381not found, the build system looks for @code{Setup.lhs} instead. 2381not found, the build system looks for @code{Setup.lhs} instead.
2382 2382
2383Which Haskell compiler is used can be specified with the @code{#:haskell} 2383Which Haskell compiler is used can be specified with the @code{#:haskell}
2384parameter which defaults to @code{ghc}. 2384parameter which defaults to @code{ghc}.
2385@end defvr 2385@end defvr
2386 2386
2387Lastly, for packages that do not need anything as sophisticated, a 2387Lastly, for packages that do not need anything as sophisticated, a
@@ -3932,6 +3932,21 @@ evaluates to.
3932@item -E @var{command} 3932@item -E @var{command}
3933Execute @var{command} in the new environment. 3933Execute @var{command} in the new environment.
3934 3934
3935@item --ad-hoc
3936Include all specified packages in the resulting environment, as if an
3937@i{ad hoc} package were defined with them as inputs. This option is
3938useful for quickly creating an environment without having to write a
3939package expression to contain the desired inputs.
3940
3941For instance, the command:
3942
3943@example
3944guix environment --ad-hoc guile guile-sdl -E guile
3945@end example
3946
3947runs @command{guile} in an environment where Guile and Guile-SDL are
3948available.
3949
3935@item --pure 3950@item --pure
3936Unset existing environment variables when building the new environment. 3951Unset existing environment variables when building the new environment.
3937This has the effect of creating an environment in which search paths 3952This has the effect of creating an environment in which search paths