diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-01-22 22:13:10 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-01-22 22:14:25 +0100 |
commit | 5401dd7595f558e759c82b1dede0c2fb687f296b (patch) | |
tree | 0b04aa9805bc61d9e01676a634bf4572237e6cc2 /doc | |
parent | 476f8ea33ce3791dbe0c77332c92e4351827dcd5 (diff) | |
download | patches-5401dd7595f558e759c82b1dede0c2fb687f296b.tar patches-5401dd7595f558e759c82b1dede0c2fb687f296b.tar.gz |
guix-build: Allow version-qualified package names.
* guix-build.in (guix-build)[find-package]: New procedure.
Use it instead of using `find-packages-by-name' directly.
Suggested by Andreas Enge <andreas@enge.fr>.
* tests/guix-build.sh: Add tests.
* doc/guix.texi (Invoking guix-build): Add `coreutils-8.20' as an
example. Fix guile-1.8 example.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 88909c42a9..8b496308d7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -989,8 +989,9 @@ guix-build @var{options} @var{package-or-derivation}@dots{} @end example @var{package-or-derivation} may be either the name of a package found in -the software distribution such as @code{coreutils}, or a derivation such -as @file{/nix/store/xxx-coreutils-8.19.drv}. Alternatively, the +the software distribution such as @code{coreutils} or +@code{coreutils-8.20}, or a derivation such as +@file{/nix/store/@dots{}-coreutils-8.19.drv}. Alternatively, the @code{--expression} option may be used to specify a Scheme expression that evaluates to a package; this is useful when disambiguation among several same-named packages or package variants is needed. @@ -1003,7 +1004,7 @@ The @var{options} may be zero or more of the following: @itemx -e @var{expr} Build the package @var{expr} evaluates to. -For example, @var{expr} may be @code{(@@ (distro packages guile) +For example, @var{expr} may be @code{(@@ (gnu packages guile) guile-1.8)}, which unambiguously designates this specific variant of version 1.8 of Guile. |