mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: r: Use uname from Guix
* gnu/packages/statistics.scm (r): Use uname from Guix.
This commit is contained in:
parent
6178274d19
commit
b5ce25cc0e
1 changed files with 8 additions and 0 deletions
|
@ -118,6 +118,13 @@ (define-public r
|
||||||
"/lib/R/lib"))
|
"/lib/R/lib"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-before
|
||||||
'configure 'set-default-pager
|
'configure 'set-default-pager
|
||||||
;; Set default pager to "cat", because otherwise it is "false",
|
;; 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
|
`(;; We need not only cairo here, but pango to ensure that tests for the
|
||||||
;; "cairo" bitmapType plotting backend succeed.
|
;; "cairo" bitmapType plotting backend succeed.
|
||||||
("pango" ,pango)
|
("pango" ,pango)
|
||||||
|
("coreutils" ,coreutils)
|
||||||
("curl" ,curl)
|
("curl" ,curl)
|
||||||
("tzdata" ,tzdata)
|
("tzdata" ,tzdata)
|
||||||
("gfortran" ,gfortran)
|
("gfortran" ,gfortran)
|
||||||
|
|
Loading…
Reference in a new issue