import/cran: Allow overriding description fetch function.
* guix/import/cran.scm (cran->guix-package): New keyword argument FETCH-DESCRIPTION.
This commit is contained in:
parent
d57dd25d38
commit
08028c443e
|
@ -645,6 +645,7 @@ (define* (description->package repository meta #:key (license-prefix identity))
|
|||
(define cran->guix-package
|
||||
(memoize
|
||||
(lambda* (package-name #:key (repo 'cran) version (license-prefix identity)
|
||||
(fetch-description fetch-description)
|
||||
#:allow-other-keys)
|
||||
"Fetch the metadata for PACKAGE-NAME from REPO and return the `package'
|
||||
s-expression corresponding to that package, or #f on failure."
|
||||
|
|
Loading…
Reference in a new issue