summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRoel Janssen <roel@gnu.org>2016-10-27 16:36:09 +0200
committerRoel Janssen <roel@gnu.org>2016-10-27 16:37:24 +0200
commitb5ce25cc0ecd1d8393f89ddca91be7000c0cc2cd (patch)
tree551a698214d2c53f9f4c579eb6f64d44448531a4 /gnu
parent6178274d19ed3e637b5365b64a28f298574df81f (diff)
downloadguix-b5ce25cc0ecd1d8393f89ddca91be7000c0cc2cd.tar.gz
gnu: r: Use uname from Guix
* gnu/packages/statistics.scm (r): Use uname from Guix.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/statistics.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 29eaadf394..b15f9cf45e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -118,6 +118,13 @@ be output in text, PostScript, PDF or HTML.")
                             "/lib/R/lib"))
        #:phases
        (modify-phases %standard-phases
+         (add-before 'configure 'patch-uname
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((uname-bin (string-append (assoc-ref inputs "coreutils")
+                                             "/bin/uname")))
+               (substitute* "src/scripts/R.sh.in"
+                 (("uname") uname-bin)))
+             #t))
          (add-before
           'configure 'set-default-pager
           ;; Set default pager to "cat", because otherwise it is "false",
@@ -169,6 +176,7 @@ be output in text, PostScript, PDF or HTML.")
      `(;; We need not only cairo here, but pango to ensure that tests for the
        ;; "cairo" bitmapType plotting backend succeed.
        ("pango" ,pango)
+       ("coreutils" ,coreutils)
        ("curl" ,curl)
        ("tzdata" ,tzdata)
        ("gfortran" ,gfortran)