mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build-system/r: bioconductor-uri: Take optional package type.
* guix/build-system/r.scm (bioconductor-uri): Take optional TYPE argument to return annotation or experiment URLs.
This commit is contained in:
parent
4cc5e5204b
commit
c586f427b4
1 changed files with 14 additions and 6 deletions
|
@ -47,14 +47,22 @@ (define (cran-uri name version)
|
|||
(string-append "mirror://cran/src/contrib/Archive/"
|
||||
name "/" name "_" version ".tar.gz")))
|
||||
|
||||
(define (bioconductor-uri name version)
|
||||
(define* (bioconductor-uri name version #:optional type)
|
||||
"Return a URI string for the R package archive on Bioconductor for the
|
||||
release corresponding to NAME and VERSION."
|
||||
(list (string-append "https://bioconductor.org/packages/release/bioc/src/contrib/"
|
||||
name "_" version ".tar.gz")
|
||||
;; TODO: use %bioconductor-version from (guix import cran)
|
||||
(string-append "https://bioconductor.org/packages/3.9/bioc/src/contrib/Archive/"
|
||||
name "_" version ".tar.gz")))
|
||||
(let ((type-url-part (match type
|
||||
('annotation "/data/annotation")
|
||||
('experiment "/data/experiment")
|
||||
(_ "/bioc"))))
|
||||
(list (string-append "https://bioconductor.org/packages/release"
|
||||
type-url-part
|
||||
"/src/contrib/"
|
||||
name "_" version ".tar.gz")
|
||||
;; TODO: use %bioconductor-version from (guix import cran)
|
||||
(string-append "https://bioconductor.org/packages/3.9"
|
||||
type-url-part
|
||||
"/src/contrib/Archive/"
|
||||
name "_" version ".tar.gz"))))
|
||||
|
||||
(define %r-build-system-modules
|
||||
;; Build-side modules imported by default.
|
||||
|
|
Loading…
Reference in a new issue