mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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
This commit is contained in:
parent
0f3a25a25e
commit
f119408f2f
1 changed files with 4 additions and 4 deletions
|
@ -17258,10 +17258,10 @@ version:
|
||||||
%base-packages)))
|
%base-packages)))
|
||||||
@end lisp
|
@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
|
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
|
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:
|
the @code{(gnu packages)} module. For example:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
|
@ -17269,8 +17269,8 @@ the @code{(gnu packages)} module. For example:
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
;; ...
|
;; ...
|
||||||
(packages (append (map specification->package+output
|
(packages (append (specifications->packages
|
||||||
'("git" "git:send-email"))
|
'("git" "git:send-email"))
|
||||||
%base-packages)))
|
%base-packages)))
|
||||||
|
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
Loading…
Reference in a new issue