diff options
| author | David Thompson <davet@gnu.org> | 2015-05-28 08:41:04 -0400 |
|---|---|---|
| committer | David Thompson <davet@gnu.org> | 2015-05-28 20:52:52 -0400 |
| commit | a54bd6d72dc91f649fb2b6cb3c612da1639d9b72 (patch) | |
| tree | 456b1e40daa35dccff6d43d20f0abbab5584f6f2 /doc | |
| parent | 1ba4796d135ba7a07f2e89126fba673601c321c2 (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.texi | 17 |
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 | |||
| 2381 | not found, the build system looks for @code{Setup.lhs} instead. | 2381 | not found, the build system looks for @code{Setup.lhs} instead. |
| 2382 | 2382 | ||
| 2383 | Which Haskell compiler is used can be specified with the @code{#:haskell} | 2383 | Which Haskell compiler is used can be specified with the @code{#:haskell} |
| 2384 | parameter which defaults to @code{ghc}. | 2384 | parameter which defaults to @code{ghc}. |
| 2385 | @end defvr | 2385 | @end defvr |
| 2386 | 2386 | ||
| 2387 | Lastly, for packages that do not need anything as sophisticated, a | 2387 | Lastly, 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} |
| 3933 | Execute @var{command} in the new environment. | 3933 | Execute @var{command} in the new environment. |
| 3934 | 3934 | ||
| 3935 | @item --ad-hoc | ||
| 3936 | Include all specified packages in the resulting environment, as if an | ||
| 3937 | @i{ad hoc} package were defined with them as inputs. This option is | ||
| 3938 | useful for quickly creating an environment without having to write a | ||
| 3939 | package expression to contain the desired inputs. | ||
| 3940 | |||
| 3941 | For instance, the command: | ||
| 3942 | |||
| 3943 | @example | ||
| 3944 | guix environment --ad-hoc guile guile-sdl -E guile | ||
| 3945 | @end example | ||
| 3946 | |||
| 3947 | runs @command{guile} in an environment where Guile and Guile-SDL are | ||
| 3948 | available. | ||
| 3949 | |||
| 3935 | @item --pure | 3950 | @item --pure |
| 3936 | Unset existing environment variables when building the new environment. | 3951 | Unset existing environment variables when building the new environment. |
| 3937 | This has the effect of creating an environment in which search paths | 3952 | This has the effect of creating an environment in which search paths |
