diff options
| author | David Thompson <dthompson2@worcester.edu> | 2015-10-30 21:02:51 -0400 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2015-10-30 21:02:51 -0400 |
| commit | c9c282cea04ec5a3ee7bd17e6ad8846600220feb (patch) | |
| tree | 7714b28669469994919ab41331e8a27d38af4368 /doc | |
| parent | 4fca58a6c6f0a5c7d3ac2363557fabeb6524865d (diff) | |
scripts: environment: Allow lists of packages in expressions.
* guix/scripts/environment.scm (options/resolve-packages): Match against
lists of packages when evaluating expressions.
* tests/guix-environment.sh: Add test.
* doc/guix.texi ("invoking guix environment"): Add docs.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index a164608b738..84f194b14bc 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -4730,7 +4730,8 @@ The available options are summarized below. | |||
| 4730 | @table @code | 4730 | @table @code |
| 4731 | @item --expression=@var{expr} | 4731 | @item --expression=@var{expr} |
| 4732 | @itemx -e @var{expr} | 4732 | @itemx -e @var{expr} |
| 4733 | Create an environment for the package that @var{expr} evaluates to. | 4733 | Create an environment for the package or list of packages that |
| 4734 | @var{expr} evaluates to. | ||
| 4734 | 4735 | ||
| 4735 | For example, running: | 4736 | For example, running: |
| 4736 | 4737 | ||
| @@ -4741,10 +4742,18 @@ guix environment -e '(@@ (gnu packages maths) petsc-openmpi)' | |||
| 4741 | starts a shell with the environment for this specific variant of the | 4742 | starts a shell with the environment for this specific variant of the |
| 4742 | PETSc package. | 4743 | PETSc package. |
| 4743 | 4744 | ||
| 4745 | Running: | ||
| 4746 | |||
| 4747 | @example | ||
| 4748 | guix environment --ad-hoc -e '(@ (gnu) %base-packages)' | ||
| 4749 | @end example | ||
| 4750 | |||
| 4751 | starts a shell with all the GuixSD base packages available. | ||
| 4752 | |||
| 4744 | @item --load=@var{file} | 4753 | @item --load=@var{file} |
| 4745 | @itemx -l @var{file} | 4754 | @itemx -l @var{file} |
| 4746 | Create an environment for the package that the code within @var{file} | 4755 | Create an environment for the package or list of packages that the code |
| 4747 | evaluates to. | 4756 | within @var{file} evaluates to. |
| 4748 | 4757 | ||
| 4749 | As an example, @var{file} might contain a definition like this | 4758 | As an example, @var{file} might contain a definition like this |
| 4750 | (@pxref{Defining Packages}): | 4759 | (@pxref{Defining Packages}): |
