summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2024-05-26 08:23:08 +0800
committer宋文武 <iyzsong@member.fsf.org>2024-05-27 09:28:39 +0800
commitf119408f2f7628b22625416f583d236cb885ef51 (patch)
treebf463c18197986042d95e57c887e0a13c192063c /doc
parent0f3a25a25e212bfa8ab9db37d267fb260a087e5d (diff)
downloadguix-patches-f119408f2f7628b22625416f583d236cb885ef51.tar
guix-patches-f119408f2f7628b22625416f583d236cb885ef51.tar.gz
doc: Replace 'specification->package+output' with 'specifications->packages'.
'(map specification->package+output specs)' doesn't work due to 'specification->package+output' will return multiple values. * doc/guix.texi (Using the Configuration System): Replace 'specification->package+output' with 'specifications->packages'. Change-Id: I443771327a2ef5ae5e7dddd9785f1eef4200e898
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index d0ce8927b4..5268d890aa 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -17258,10 +17258,10 @@ version:
%base-packages)))
@end lisp
-@findex specification->package+output
+@findex specifications->packages
When a package has more than one output it can be a challenge to refer to a
specific output instead of just to the standard @code{out} output. For these
-situations one can use the @code{specification->package+output} procedure from
+situations one can use the @code{specifications->packages} procedure from
the @code{(gnu packages)} module. For example:
@lisp
@@ -17269,8 +17269,8 @@ the @code{(gnu packages)} module. For example:
(operating-system
;; ...
- (packages (append (map specification->package+output
- '("git" "git:send-email"))
+ (packages (append (specifications->packages
+ '("git" "git:send-email"))
%base-packages)))
@end lisp