From: Efraim Flashner <efraim@flashner.co.il>
To: 66250@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#66250] [PATCH] doc: Document specification->package+output.
Date: Thu, 28 Sep 2023 12:32:58 +0300 [thread overview]
Message-ID: <b8638c1bf31ed476e00a43f851c9293dd7fd9f09.1695893561.git.efraim@flashner.co.il> (raw)
Reported by nutcase on IRC.
* doc/guix.texi (Using the Configuration System): Add a section about
using specification->package+output.
---
doc/guix.texi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index f49ed894a7..d9865f4ac0 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -16936,6 +16936,23 @@ Using the Configuration System
%base-packages)))
@end lisp
+@findex specification->package+output
+When a package has more than one output it can be a challenge to refer to
+specific output instead of just to the standard @code{out} output. For these
+situations one can use the @code{specification->package+output} procedure from
+the @code{(gnu packages)} module. For example:
+
+@lisp
+(use-modules (gnu packages))
+
+(operating-system
+ ;; ...
+ (packages (append (map specification->package+output
+ '("nss-certs" "git" "git:send-email"))
+ %base-packages)))
+
+@end lisp
+
@unnumberedsubsec System Services
@cindex services
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
next reply other threads:[~2023-09-28 9:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 9:32 Efraim Flashner [this message]
2023-10-13 8:53 ` bug#66250: [PATCH] doc: Document specification->package+output Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8638c1bf31ed476e00a43f851c9293dd7fd9f09.1695893561.git.efraim@flashner.co.il \
--to=efraim@flashner.co.il \
--cc=66250@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).