Hi! :-) zimoun <zimon.touto...@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’.