diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-08-01 23:30:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-08-01 23:30:52 +0200 |
commit | 455859a50f88f625d13fc2f304111f02369b366b (patch) | |
tree | 285d8aa9253f033fa8d64e6b5f9f8d856aae04d2 /guix/download.scm | |
parent | 742effef5629667b274087adc70b06abab86b252 (diff) | |
download | gnu-guix-455859a50f88f625d13fc2f304111f02369b366b.tar gnu-guix-455859a50f88f625d13fc2f304111f02369b366b.tar.gz |
Merge branch 'core-updates'
Diffstat (limited to 'guix/download.scm')
-rw-r--r-- | guix/download.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/download.scm b/guix/download.scm index 73c0e897b4..b2dcdc88f9 100644 --- a/guix/download.scm +++ b/guix/download.scm @@ -236,8 +236,15 @@ ;; List of content-addressed mirrors. Each mirror is represented as a ;; procedure that takes a file name, an algorithm (symbol) and a hash ;; (bytevector), and returns a URL or #f. + ;; Note: Avoid 'https' to mitigate <http://bugs.gnu.org/22774>. ;; TODO: Add more. '(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. (string-append "http://tarballs.nixos.org/" (symbol->string algo) "/" |