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.
This commit is contained in:
Tobias Geerinckx-Rice 2021-02-17 22:35:13 +01:00
parent ca89f21a7f
commit 6dbe4b12df
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -23538,6 +23538,17 @@ (define-public r-rserve
(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)