summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2017-05-01 15:44:31 +0200
committerJulien Lepiller <julien@lepiller.eu>2017-05-06 10:02:26 +0200
commitfe0915cf24a2bd2edd2b7d38d4ba85998e486f20 (patch)
tree97e2eaf11ff9c6e2ca49ffb607f03d5c23a3d8c9 /doc
parent860f73c699a5a22036b67b63a5a2a3e0901a354f (diff)
downloadguix-patches-fe0915cf24a2bd2edd2b7d38d4ba85998e486f20.tar
guix-patches-fe0915cf24a2bd2edd2b7d38d4ba85998e486f20.tar.gz
doc: Document (list package output) syntax in operanting-system-packages.
* doc/guix.texi (Globally-Visible Packages): Document (PACKAGE OUTPUT) syntax.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 79942d7cd1..4446909ed6 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7761,7 +7761,19 @@ provides all the tools one would expect for basic user and administrator
tasks---including the GNU Core Utilities, the GNU Networking Utilities,
the GNU Zile lightweight text editor, @command{find}, @command{grep},
etc. The example above adds tcpdump to those, taken from the @code{(gnu
-packages admin)} module (@pxref{Package Modules}).
+packages admin)} module (@pxref{Package Modules}). The
+@code{(list package output)} syntax can be used to add a specific output
+of a package:
+
+@lisp
+(use-modules (gnu packages))
+(use-modules (gnu packages dns))
+
+(operating-system
+ ;; ...
+ (packages (cons (list bind "utils")
+ %base-packages)))
+@end lisp
@findex specification->package
Referring to packages by variable name, like @var{tcpdump} above, has