me
/
guix
Archived
1
0
Fork 0

import/cran: Allow overriding description fetch function.

* guix/import/cran.scm (cran->guix-package): New keyword argument
FETCH-DESCRIPTION.
master
Lars-Dominik Braun 2022-10-18 12:45:45 +02:00 committed by Ricardo Wurmus
parent d57dd25d38
commit 08028c443e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 1 additions and 0 deletions

View File

@ -645,6 +645,7 @@ from the alist META, which was derived from the R package's DESCRIPTION file."
(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."