From: david larsson <david.larsson@selfhosted.xyz>
To: jgart <jgart@dismail.de>
Cc: guix-devel@gnu.org,
guix-devel-bounces+david.larsson=selfhosted.xyz@gnu.org
Subject: Re: Search in One Channel
Date: Thu, 05 Jan 2023 14:23:44 +0100 [thread overview]
Message-ID: <849acf02a5938e51608534c78720e0d4@selfhosted.xyz> (raw)
In-Reply-To: <86fedcf4088e1ae46ab88c7fb9bcaa66@dismail.de>
On 2022-12-29 00:45, jgart wrote:
[..]
>
> Any thoughts or ideas on how I should approach implementing
> search/filter search in one channel only?
I think something like this would be a start where the "pkg-dir"
argument is the path to a package directory in a channel:
(define (packages-i-want mypkgname pkg-dir)
(fold-packages (lambda (package result)
(if (mypkg? package mypkgname)
(cons package result)
result))
'()
(fold-modules cons '() `(,pkg-dir))))
Best regards,
David Larsson
prev parent reply other threads:[~2023-01-05 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-28 23:45 Search in One Channel jgart
2022-12-29 23:26 ` Csepp
2022-12-30 1:47 ` jgart
2022-12-30 1:49 ` jgart
2023-01-05 11:56 ` zimoun
2023-01-05 13:23 ` david larsson [this message]
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=849acf02a5938e51608534c78720e0d4@selfhosted.xyz \
--to=david.larsson@selfhosted.xyz \
--cc=guix-devel-bounces+david.larsson=selfhosted.xyz@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jgart@dismail.de \
/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).