diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:47:20 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-12-28 11:21:18 +0000 |
commit | 35f94a1b3afbc525782f5b1a947308e01c0efb08 (patch) | |
tree | 02cc70b33d0b707ba0c8aca47136a4f9c77c0938 | |
parent | 4f9971f7e0e4c2b2ac5fa95886dd6fd5b6197d5c (diff) | |
download | guix-35f94a1b3afbc525782f5b1a947308e01c0efb08.tar guix-35f94a1b3afbc525782f5b1a947308e01c0efb08.tar.gz |
gnu: Add ruby-coffee-script.
-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 eea374e123..18c30bf416 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7504,3 +7504,42 @@ logic in Jekyll. It calculates and generates the pagination pages.") `(#:tests? #f)) (native-inputs `()))) + +(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))) |