guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to customize mirror list used in custom channels?


From: Ludovic Courtès
Subject: Re: how to customize mirror list used in custom channels?
Date: Sat, 26 Nov 2022 12:11:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hi! :-)

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

> In ’(guix download)’ module, the list of mirrors are provided by the
> list ’%mirrors’.  So I would like to add mine, e.g.,
>
>         (cons
>          '(mine
>            "https://fast-server.org/sources/";
>            "hhtps://kikoo.io/path/to/something/")
>          %mirrors)
>
> and then in my package definition,
>
>         (uri "mirror://mine/stuff.tar.gz")
>
> Somehow, I would like to replace the list %mirrors by an extended one.

The easiest solution is to avoid mirror:// and pass a list of regular
URLs:

  (origin
    (method url-fetch)
    (uri (list URL1 URL2 URL3))
    (base32 …))

See for example how ‘qtbase’ does it.

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.

But really, the URL list should do the job most of the time.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]