[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/296: gnu: Add r-v8.
From: |
guix-commits |
Subject: |
06/296: gnu: Add r-v8. |
Date: |
Fri, 12 Jun 2020 19:29:21 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 06ceac32e6f55665a0c3b7ecc9d3043713be2fc1
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Jun 12 23:53:02 2020 +0200
gnu: Add r-v8.
* gnu/packages/cran.scm (r-v8): New variable.
---
gnu/packages/cran.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 1a91b63..6ebb424 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -72,6 +72,7 @@
#:use-module (gnu packages mpi)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages networking)
+ #:use-module (gnu packages node)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -103,6 +104,52 @@ The package provides functions for point generation, arc
length estimation,
degree elevation and curve fitting.")
(license license:gpl2+)))
+(define-public r-v8
+ (package
+ (name "r-v8")
+ (version "3.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "V8" version))
+ (sha256
+ (base32
+ "0xdljralgwyivdhx2a7kqf3yv4ijl4rdrz2p7p59lj2x5d2qyanf"))))
+ (properties `((upstream-name . "V8")))
+ (build-system r-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'find-v8
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "configure"
+ (("^PKG_LIBS=.*")
+ (string-append "PKG_LIBS="
+ (assoc-ref inputs "node")
+ "/lib/libnode.so.64\n")))
+ (setenv "INCLUDE_DIR"
+ (string-append
+ (assoc-ref inputs "node")
+ "/include/node"))
+ (setenv "LIB_DIR"
+ (string-append
+ (assoc-ref inputs "node") "/lib"))
+ #t)))))
+ (inputs
+ `(("node" ,node)))
+ (propagated-inputs
+ `(("r-curl" ,r-curl)
+ ("r-jsonlite" ,r-jsonlite)
+ ("r-rcpp" ,r-rcpp)))
+ (native-inputs
+ `(("r-knitr" ,r-knitr)))
+ (home-page "https://jeroen.cran.dev/V8")
+ (synopsis "Embedded JavaScript and WebAssembly engine for R")
+ (description
+ "This package provides an R interface to V8: Google's JavaScript and
+WebAssembly engine.")
+ (license license:expat)))
+
(define-public r-clipr
(package
(name "r-clipr")
- branch master updated (db6290a -> 9ae4bd0), guix-commits, 2020/06/12
- 01/296: gnu: r-gprofiler: Move to (gnu packages cran)., guix-commits, 2020/06/12
- 02/296: guix: Update to Bioconductor 3.11., guix-commits, 2020/06/12
- 04/296: gnu: Add r-gprofiler2., guix-commits, 2020/06/12
- 05/296: gnu: Add r-scatterpie., guix-commits, 2020/06/12
- 06/296: gnu: Add r-v8.,
guix-commits <=
- 03/296: gnu: node: Build shared library., guix-commits, 2020/06/12
- 07/296: gnu: Add r-dot., guix-commits, 2020/06/12
- 10/296: gnu: r-genefilter: Update to 1.70.0., guix-commits, 2020/06/12
- 08/296: gnu: r-preprocesscore: Update to 1.50.0., guix-commits, 2020/06/12
- 09/296: gnu: r-rgraphviz: Update to 2.32.0., guix-commits, 2020/06/12
- 15/296: gnu: r-gseabase: Update to 1.50.1., guix-commits, 2020/06/12
- 17/296: gnu: r-gostats: Update to 2.54.0., guix-commits, 2020/06/12
- 11/296: gnu: r-deseq2: Update to 1.28.1., guix-commits, 2020/06/12
- 12/296: gnu: r-dexseq: Update to 1.34.0., guix-commits, 2020/06/12
- 13/296: gnu: r-annotationforge: Update to 1.30.1., guix-commits, 2020/06/12