summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-06-11 23:05:23 +0200
committerLudovic Courtès <ludo@gnu.org>2017-06-11 23:05:23 +0200
commitc08ea55e7ec25261e4596bf6726a83c1ed056b94 (patch)
tree62c86988b26ccca3b8cdebaf07b201f4d0f904e4 /doc
parentc580ff672425ad7cd6a388178fa5857b6aa15d5f (diff)
downloadguix-c08ea55e7ec25261e4596bf6726a83c1ed056b94.tar.gz
packages: Add 'specifications->manifest'.
* gnu/packages.scm (specifications->manifest): New procedure.
* doc/guix.texi (Invoking guix package): Change example from using
'(compose list specification->package+output)' to using
'specifications->manifest'.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 87aaae8545..83f20c8598 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1742,18 +1742,17 @@ of packages:
        (list guile-2.0 "debug")))
 @end example
 
-@findex specification->package+output
+@findex specifications->manifest
 In this example we have to know which modules define the @code{emacs}
 and @code{guile-2.0} variables to provide the right
 @code{use-package-modules} line, which can be cumbersome.  We can
 instead provide regular package specifications and let
-@code{specification->package-output} look up the corresponding package
+@code{specifications->manifest} look up the corresponding package
 objects, like this:
 
 @example
-(packages->manifest
- (map (compose list specification->package+output)
-      '("emacs" "guile@@2.0" "guile@@2.0:debug")))
+(specifications->manifest
+ '("emacs" "guile@@2.2" "guile@@2.2:debug"))
 @end example
 
 @item --roll-back