build: Add bioconductor-uri procedure.
* guix/build-system/r.scm (bioconductor-uri): New procedure.master
parent
8e92cfb101
commit
12d38e8d43
|
@ -29,7 +29,8 @@
|
||||||
#:export (%r-build-system-modules
|
#:export (%r-build-system-modules
|
||||||
r-build
|
r-build
|
||||||
r-build-system
|
r-build-system
|
||||||
cran-uri))
|
cran-uri
|
||||||
|
bioconductor-uri))
|
||||||
|
|
||||||
;; Commentary:
|
;; Commentary:
|
||||||
;;
|
;;
|
||||||
|
@ -46,6 +47,12 @@ available via the first URI, the second URI points to the archived version."
|
||||||
(string-append "mirror://cran/src/contrib/Archive/"
|
(string-append "mirror://cran/src/contrib/Archive/"
|
||||||
name "/" name "_" version ".tar.gz")))
|
name "/" name "_" version ".tar.gz")))
|
||||||
|
|
||||||
|
(define (bioconductor-uri name version)
|
||||||
|
"Return a URI string for the R package archive on Bioconductor for the
|
||||||
|
release corresponding to NAME and VERSION."
|
||||||
|
(string-append "http://bioconductor.org/packages/release/bioc/src/contrib/"
|
||||||
|
name "_" version ".tar.gz"))
|
||||||
|
|
||||||
(define %r-build-system-modules
|
(define %r-build-system-modules
|
||||||
;; Build-side modules imported by default.
|
;; Build-side modules imported by default.
|
||||||
`((guix build r-build-system)
|
`((guix build r-build-system)
|
||||||
|
|
Reference in New Issue