aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-02-17 22:35:13 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2021-02-17 22:36:17 +0100
commit6dbe4b12df46ed4b33e6d8ebf28fd478442dabf3 (patch)
tree74cc6981a1e9a65356e764f66131106253f2e4fc
parentca89f21a7f6641569034611763a2a06b24e8ce43 (diff)
downloadguix-6dbe4b12df46ed4b33e6d8ebf28fd478442dabf3.tar
guix-6dbe4b12df46ed4b33e6d8ebf28fd478442dabf3.tar.gz
gnu: r-rserve: Install server binary.
Missing Rserve reported by awb99 on #guix. * gnu/packages/cran.scm (r-rserve)[arguments]: Add an 'install-server-binary phase.
-rw-r--r--gnu/packages/cran.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 1fe90619cd..e025ded315 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -23538,6 +23538,17 @@ download images.")
(base32
"017kkzv9lxlz9qhg3gprrf1wcyflxrif6wjk27x9b4bdzylw6bsx"))))
(build-system r-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'install-server-binary
+ ;; Makevars tries to install to R's store directory.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (substitute* "src/Makevars.in"
+ (("\\$\\(R_HOME\\)") out))
+ (mkdir-p bin)))))))
(propagated-inputs
`(("r-checkmate" ,r-checkmate)
("r-mime" ,r-mime)