From 5401dd7595f558e759c82b1dede0c2fb687f296b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 22 Jan 2013 22:13:10 +0100 Subject: 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 . * tests/guix-build.sh: Add tests. * doc/guix.texi (Invoking guix-build): Add `coreutils-8.20' as an example. Fix guile-1.8 example. --- doc/guix.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/guix.texi') 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. -- cgit v1.2.3