diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:47:20 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-18 18:25:19 +0000 |
commit | 2f32aeca98f9900a55181a04d1937f05c89882d5 (patch) | |
tree | eec1ddee6dab4bfea61c743b97a966488c9e0be2 /gnu/packages/ruby.scm | |
parent | a222992a12e62c704d9fcb9a4f9fd8dcfa10c522 (diff) | |
download | guix-2f32aeca98f9900a55181a04d1937f05c89882d5.tar guix-2f32aeca98f9900a55181a04d1937f05c89882d5.tar.gz |
gnu: Add ruby-coffee-script.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 5dcbb86136..1ad664aef9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6152,3 +6152,42 @@ using a strict syntax definition and supporting several common extensions. "Run any kind of code in parallel processes") (home-page "https://github.com/grosser/parallel") (license license:expat))) + +(define-public ruby-coffee-script + (package + (name "ruby-coffee-script") + (version "2.4.1") + (source + (origin + (method url-fetch) + ;; fetch from github as the gem does not contain testing code + (uri (string-append + "https://github.com/rails/ruby-coffee-script/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "0gbcg40ks4ifm332ljmgq2l44ssld0z6xhjzk48v6mpaxyz8mc92")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'fix-test + (lambda _ + ;; patch submitted upstream at + ;; https://github.com/rails/ruby-coffee-script/pull/6 + (substitute* "test/test_coffee_script.rb" + ((" unexpected unless\\\"") + " unexpected unless\", '[stdin]:3:11: unexpected unless'")) + #t))))) + (propagated-inputs + `(("ruby-coffee-script-source" ,ruby-coffee-script-source) + ("ruby-execjs" ,ruby-execjs) + ("ruby-duktape", ruby-duktape))) ; use as the JS interpreter + (synopsis "bridge to the javascript CoffeeScript compiler.") + (description + "Ruby CoffeeScript is a bridge to the javascript CoffeeScript compiler. +CoffeeScript is an attempt to expose the good parts of JavaScript in a simple +way.") + (home-page + "http://github.com/rails/ruby-coffee-script") + (license license:expat))) |