guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: r-rserve: Install server binary.


From: guix-commits
Subject: branch master updated: gnu: r-rserve: Install server binary.
Date: Wed, 17 Feb 2021 16:37:09 -0500

This is an automated email from the git hooks/post-receive script.

nckx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 6dbe4b1  gnu: r-rserve: Install server binary.
6dbe4b1 is described below

commit 6dbe4b12df46ed4b33e6d8ebf28fd478442dabf3
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Feb 17 22:35:13 2021 +0100

    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.
---
 gnu/packages/cran.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 1fe9061..e025ded 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]