summaryrefslogtreecommitdiff
path: root/guix/download.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-09-14 10:11:42 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-14 11:50:58 +0200
commit3cb5ae8577db28b2c6013b9d9ecf99cb696e3432 (patch)
tree4430363dcf7e1b9b7589d6d86d360c6d7fd97b13 /guix/download.scm
parent67da64608773772f75983415dd90584025ecd523 (diff)
downloadguix-patches-3cb5ae8577db28b2c6013b9d9ecf99cb696e3432.tar
guix-patches-3cb5ae8577db28b2c6013b9d9ecf99cb696e3432.tar.gz
download: Disarchive mirrors can be URL-returning procedures.
As discussed at <https://issues.guix.gnu.org/47336#16>. * guix/build/download.scm (url-fetch)[disarchive-uris]: Accept MIRROR as a procedure. * guix/download.scm (%disarchive-mirrors): Add comment. This change can only be made once a 'guix perform-download' that understands procedures is widely deployed.
Diffstat (limited to 'guix/download.scm')
-rw-r--r--guix/download.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/download.scm b/guix/download.scm
index a66cf0cea1..85b97a4766 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -400,6 +400,8 @@
(object->string %content-addressed-mirrors)))
(define %disarchive-mirrors
+ ;; TODO: Eventually turn into a procedure that takes a hash algorithm
+ ;; (symbol) and hash (bytevector).
'("https://disarchive.ngyro.com/"))
(define %disarchive-mirror-file