From: "Ludovic Courtès" <ludo@gnu.org>
To: Nicolas Graves <ngraves@ngraves.fr>
Cc: 62589@debbugs.gnu.org
Subject: bug#62589: Help with patch with delayed evaluation
Date: Sat, 01 Apr 2023 12:28:36 +0200 [thread overview]
Message-ID: <87zg7rgaln.fsf_-_@gnu.org> (raw)
In-Reply-To: <20230401100509.24723-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Sat, 1 Apr 2023 12:05:09 +0200")
Hi,
Nicolas Graves <ngraves@ngraves.fr> skribis:
> +(define* (make-nerd-dictation-package
> + input-tool output-tool
> + #:key (nerd-dictation-package nerd-dictation))
> + "Construct a nerd-dictation package for OUTPUT-TOOL."
> + (match-let* (((input-name output-name)
> + (map (lambda (tool)
> + (lazy
> + (delay (package-name (force tool)))))
> + (list input-tool output-tool))))
> + (package
> + (inherit nerd-dictation-package)
> + (name (string-append "nerd-dictation-"
> + (if (equal? (force input-name) "sox")
> + "sox-"
> + "")
> + (force output-name)))
I don’t understand the details of what the patch does, but as a rule of
thumb, make sure you only ever inherit from packages defined in the same
module.
Perhaps that’s what was going wrong?
HTH,
Ludo’.
next prev parent reply other threads:[~2023-04-01 10:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-01 9:58 bug#62589: Help with patch with delayed evaluation Nicolas Graves via Bug reports for GNU Guix
2023-04-01 10:05 ` bug#62589: [PATCH] gnu: nerd-dictation: Factor out wrapper. Add package variants Nicolas Graves via Bug reports for GNU Guix
2023-04-01 10:28 ` Ludovic Courtès [this message]
2023-04-01 10:58 ` bug#62589: Help with patch with delayed evaluation Nicolas Graves via Bug reports for GNU Guix
2023-04-01 15:27 ` Nicolas Graves via Bug reports for GNU Guix
2023-04-17 15:41 ` Nicolas Graves via Bug reports for GNU Guix
2023-04-01 17:32 ` bug#62589: [PATCH] gnu: nerd-dictation: Factor out wrapper. Add package variants Nicolas Graves via Bug reports for GNU Guix
2023-04-24 20:53 ` bug#62589: Help with patch with delayed evaluation Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg7rgaln.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=62589@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.