From: Tobias Geerinckx-Rice <me@tobias.gr>
To: EuAndreh <eu@euandre.org>
Cc: help-guix@gnu.org
Subject: Re: How to select git:send-email output in config.scm?
Date: Sat, 08 Aug 2020 20:16:38 +0200 [thread overview]
Message-ID: <87ft8xm29l.fsf@nckx> (raw)
In-Reply-To: <87364xxm5u.fsf@euandre.org>
[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]
Good evening,
EuAndreh 写道:
>> Use specification->package+output.
>
> I tried that, and it indeed doesn't complains about 'unknown
> package'
> anymore. However, send-email is still not installed after a
> system
> reconfigure:
Indeed, my first mail was too hurried & my longer mail didn't
address this part at all...
(packages
(append
(list (list git "send-email")
(list git "gui") ; just another example
foo
...)
(map specification->package
'("git"
"bar"
...)
PACKAGES takes a list of, well, packages -- *or* (package output)
sublists! This is not well-documented: it's mentioned in
gnu/system.scm, but not in the manual under ‘operating-system
Reference’. I will add it there. Thank you for pointing it out.
If you want to go one step further, get rid of APPEND, and MAP
everything: it's not hard to write a procedure similar to
specification->package+output that returns a list instead of
multiple values (hint: take a look at DEFINE-VALUES). There might
well already be one hiding somewhere. I don't know.
For today, at least, I'll leave this as an excercise for the
reader. :-p
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2020-08-08 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-08 9:50 How to select git:send-email output in config.scm? EuAndreh
2020-08-08 11:26 ` Tobias Geerinckx-Rice
2020-08-08 14:11 ` EuAndreh
2020-08-08 18:16 ` Tobias Geerinckx-Rice [this message]
2020-08-08 20:53 ` EuAndreh
2020-08-08 11:33 ` Tobias Geerinckx-Rice
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=87ft8xm29l.fsf@nckx \
--to=me@tobias.gr \
--cc=eu@euandre.org \
--cc=help-guix@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.
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).