aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:47:42 +0100
committerChristopher Baines <mail@cbaines.net>2018-03-18 18:25:19 +0000
commitcebb7693c3bb250d9480a45f5b33722a81fbb940 (patch)
treebbecc2a53a5e9f5e0a9a0961455b69cc615c3a1a
parent7dd1ff6f05f98164ea716b34515ab16471e3fe1c (diff)
downloadguix-cebb7693c3bb250d9480a45f5b33722a81fbb940.tar
guix-cebb7693c3bb250d9480a45f5b33722a81fbb940.tar.gz
gnu: Add ruby-execjs.
-rw-r--r--gnu/packages/ruby.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 45ca8a5cea..20222b62ef 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6215,3 +6215,28 @@ CoffeeScript is released.")
(home-page
"https://rubygems.org/gems/coffee-script-source")
(license license:expat)))
+
+(define-public ruby-execjs
+ (package
+ (name "ruby-execjs")
+ (version "2.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ ;; fetch from github as the gem does not contain testing code
+ (uri (string-append "https://github.com/rails/execjs/archive/v"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0h1bi96gks205pz2mn2zwldz8h0ajwggyi85bwfbksmrsn2lwick"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f)) ; tests require ruby-therubyracer and thus v8.
+ (native-inputs
+ `(("bundler" ,bundler)))
+ (synopsis
+ "ExecJS lets you run JavaScript code from Ruby.")
+ (description
+ "ExecJS lets you run JavaScript code from Ruby.")
+ (home-page "https://github.com/rails/execjs")
+ (license license:expat)))