download: Provide a fall-back guile for older daemons.

Fixes <http://bugs.gnu.org/25775>.

* guix/download.scm (in-band-download): Use %bootstrap-guile as a
fall-back when using older daemons that do not have a built-in
downloader.

Written-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
Leo Famulari 2017-02-23 13:48:11 -05:00
parent b191f0a6c5
commit 9f05908fb1
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -418,7 +418,10 @@ (define builder
;; hash of the expected result.
#:verify-certificate? #f)))))
(mlet %store-monad ((guile (package->derivation guile system)))
(mlet %store-monad ((guile (package->derivation
(or guile
(@@ (gnu packages bootstrap) %bootstrap-guile))
system)))
(gexp->derivation file-name builder
#:guile-for-build guile
#:system system