doc: Add '--manifest' example using 'specification->package+output'.

* doc/guix.texi (Invoking guix package): Add --manifest example using
'specification->package+output'.
master
Ludovic Courtès 2017-01-17 22:58:37 +01:00
parent 1f4f2360ad
commit 6cd1059340
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 14 additions and 0 deletions

View File

@ -1685,6 +1685,20 @@ of packages:
(list guile-2.0 "debug")))
@end example
@findex specification->package+output
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
objects, like this:
@example
(packages->manifest
(map (compose list specification->package+output)
'("emacs" "guile@@2.0" "guile@@2.0:debug")))
@end example
@item --roll-back
@cindex rolling back
@cindex undoing transactions