all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#36805] Small patch to remove TODO for (@@ (guix build-system r) bioconductor-uri)
@ 2019-07-25  3:13 Kyle Andrews
  2019-07-25 13:48 ` zimoun
  2019-09-14 21:04 ` [bug#37404] add herbstluftwm window manager package (v0.7.2) to guix (gnu/packages/wm.scm) Kyle Andrews
  0 siblings, 2 replies; 6+ messages in thread
From: Kyle Andrews @ 2019-07-25  3:13 UTC (permalink / raw)
  To: 36805

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

Hi,

I am a heavy R user trying to get my feet wet with guix. Here is a
patch to remove the hard-coded bioconductor release by adding an
optional 3rd argument to the function with an appropriate default
value. I hope this is helpful.

Regards,

Kyle Andrews

[-- Attachment #2: 0001-NAME-and-VERSION-are-not-enough-for-Bioconductor-URI.patch --]
[-- Type: text/x-patch, Size: 1577 bytes --]

From 729e621cc2175864937b6a4a3e754bd128ac9056 Mon Sep 17 00:00:00 2001
From: Kyle Andrews <kyle.c.andrews@gmail.com>
Date: Wed, 24 Jul 2019 22:51:20 -0400
Subject: [PATCH] NAME and VERSION are not enough for Bioconductor URI. Need
 RELEASE.

---
 guix/build-system/r.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/guix/build-system/r.scm b/guix/build-system/r.scm
index fbf08d3aa7..93b2f2f14f 100644
--- a/guix/build-system/r.scm
+++ b/guix/build-system/r.scm
@@ -47,13 +47,14 @@ available via the first URI, the second URI points to the archived version."
         (string-append "mirror://cran/src/contrib/Archive/"
                        name "/" name "_" version ".tar.gz")))
 
-(define (bioconductor-uri name version)
+(define* (bioconductor-uri name version
+                           #:optional
+                           (release (@@ (guix import cran) %bioconductor-version)))
   "Return a URI string for the R package archive on Bioconductor for the
-release corresponding to NAME and VERSION."
+release corresponding to NAME, package VERSION, and Bioconductor RELEASE."
   (list (string-append "https://bioconductor.org/packages/release/bioc/src/contrib/"
                        name "_" version ".tar.gz")
-        (string-append "https://bioconductor.org/packages/"
-                       (@@ (guix import cran) %bioconductor-version)
+        (string-append "https://bioconductor.org/packages/" release
                        "/bioc/src/contrib/Archive/"
                        name "_" version ".tar.gz")))
 
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-16  8:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-25  3:13 [bug#36805] Small patch to remove TODO for (@@ (guix build-system r) bioconductor-uri) Kyle Andrews
2019-07-25 13:48 ` zimoun
2019-07-26  4:17   ` Kyle Andrews
2019-07-26  9:46     ` Ricardo Wurmus
2019-09-14 21:04 ` [bug#37404] add herbstluftwm window manager package (v0.7.2) to guix (gnu/packages/wm.scm) Kyle Andrews
2019-09-16  8:57   ` bug#37404: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.