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
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ META."
(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))))