summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2022-10-18 12:45:45 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-12-31 14:48:46 +0100
commit08028c443e7beb84e2a6c80dc8c87007c149b332 (patch)
treede92b6035c2e25440ca52f28db2a1bfcc7c99548 /guix
parentd57dd25d3850d220bd82b44fa6f69812022199e4 (diff)
import/cran: Allow overriding description fetch function.
* guix/import/cran.scm (cran->guix-package): New keyword argument FETCH-DESCRIPTION.
Diffstat (limited to 'guix')
-rw-r--r--guix/import/cran.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 992cbac790..725c3a9b21 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -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."