mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
download: Add mirror.hydra.gnu.org as a content-addressed mirror.
* guix/download.scm (%content-addressed-mirrors): Add 'mirror.hydra.gnu.org'.
This commit is contained in:
parent
38f1cf8a8e
commit
40f788b9f6
1 changed files with 7 additions and 0 deletions
|
@ -236,8 +236,15 @@ (define %content-addressed-mirrors
|
||||||
;; List of content-addressed mirrors. Each mirror is represented as a
|
;; List of content-addressed mirrors. Each mirror is represented as a
|
||||||
;; procedure that takes a file name, an algorithm (symbol) and a hash
|
;; procedure that takes a file name, an algorithm (symbol) and a hash
|
||||||
;; (bytevector), and returns a URL or #f.
|
;; (bytevector), and returns a URL or #f.
|
||||||
|
;; Note: Avoid 'https' to mitigate <http://bugs.gnu.org/22774>.
|
||||||
;; TODO: Add more.
|
;; TODO: Add more.
|
||||||
'(list (lambda (file algo hash)
|
'(list (lambda (file algo hash)
|
||||||
|
;; Files served by 'guix publish' are accessible under a single
|
||||||
|
;; hash algorithm.
|
||||||
|
(string-append "http://mirror.hydra.gnu.org/file/"
|
||||||
|
file "/" (symbol->string algo) "/"
|
||||||
|
(bytevector->nix-base32-string hash)))
|
||||||
|
(lambda (file algo hash)
|
||||||
;; 'tarballs.nixos.org' supports several algorithms.
|
;; 'tarballs.nixos.org' supports several algorithms.
|
||||||
(string-append "http://tarballs.nixos.org/"
|
(string-append "http://tarballs.nixos.org/"
|
||||||
(symbol->string algo) "/"
|
(symbol->string algo) "/"
|
||||||
|
|
Loading…
Reference in a new issue