import: cpan: Use cpan mirror url.

* guix/import/cpan.scm (cpan-module->sexp)[source-url]: Substitute cpan mirror
  url.
This commit is contained in:
Eric Bavier 2015-02-13 21:35:48 -06:00
parent a0c2c4b45b
commit e92a4ad928

View file

@ -167,7 +167,9 @@ (define (maybe-inputs guix-name inputs)
(list 'quasiquote inputs))))))
(define source-url
(assoc-ref meta "download_url"))
(regexp-substitute/global #f "http://cpan.metacpan.org"
(assoc-ref meta "download_url")
'pre "mirror://cpan" 'post))
(let ((tarball (with-store store
(download-to-store store source-url))))