unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: how to customize mirror list used in custom channels?
Date: Tue, 29 Nov 2022 09:41:49 +0100	[thread overview]
Message-ID: <87o7sq6tki.fsf@gnu.org> (raw)
In-Reply-To: <87wn7fs0kt.fsf@gmail.com> (zimoun's message of "Mon, 28 Nov 2022 13:52:34 +0100")

zimoun <zimon.toutoune@gmail.com> skribis:

> Hi,
>
> On Mon, 28 Nov 2022 at 11:49, Ludovic Courtès <ludo@gnu.org> wrote:
>> Hi,
>>
>> zimoun <zimon.toutoune@gmail.com> skribis:
>>
>>> On Sat, 26 Nov 2022 at 12:11, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>> [...]
>>
>>>> Now, if you really want to extend the set of things recognized, you
>>>> could write variant of ‘url-fetch’ that passes a different #:mirrors
>>>> argument to ‘built-in-download’.  Maybe ‘url-fetch’ could have a
>>>> #:mirrors parameter to simplify it.
>>>
>>> Why is it not possible to extend ’%mirrors?
>>
>> What I described above is one way to extend it, just not via ‘set!’.
>
> Just to be sure, one way is this extension mechanism,

I was referring to #:mirrors etc. above.

[...]

> The other one way is to implement a variant of url-fetch method.  What
> would be the interface?  Where the extended list of mirrors would be
> provided?

The more I write, the closer I get to an actual implementation.  :-)
If ‘url-fetch’ takes a #:mirrors, that should allow us to extend the set
of mirrors quite conveniently, along the lines of:

  (define (my-url-fetch . args)
    (apply url-fetch (append args '(#:mirrors …))))

HTH!

Ludo’.


  reply	other threads:[~2022-11-29  8:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-25  8:42 how to customize mirror list used in custom channels? zimoun
2022-11-26 11:11 ` Ludovic Courtès
2022-11-27 12:09   ` zimoun
2022-11-28 10:49     ` Ludovic Courtès
2022-11-28 12:52       ` zimoun
2022-11-29  8:41         ` Ludovic Courtès [this message]
2022-11-29 19:02           ` zimoun
2022-12-02  9:01             ` 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

  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=87o7sq6tki.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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).