Skip to content
Snippets Groups Projects
Unverified Commit 6cd10593 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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

* doc/guix.texi (Invoking guix package): Add --manifest example using
'specification->package+output'.
parent 1f4f2360
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment