mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
import: cpan: Use cpan mirror url.
* guix/import/cpan.scm (cpan-module->sexp)[source-url]: Substitute cpan mirror url.
This commit is contained in:
parent
a0c2c4b45b
commit
e92a4ad928
1 changed files with 3 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue