gnu: r: Use uname from Guix

* gnu/packages/statistics.scm (r): Use uname from Guix.
This commit is contained in:
Roel Janssen 2016-10-27 16:36:09 +02:00
parent 6178274d19
commit b5ce25cc0e
No known key found for this signature in database
GPG key ID: C3EC1DCA843072E1

View file

@ -118,6 +118,13 @@ (define-public r
"/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 @@ (define-public r
`(;; 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)