diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:58:56 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-12-31 09:46:23 +0000 |
commit | a7748bbab0b6cdfdc4b02db3558001a5fe376cd6 (patch) | |
tree | e06d108b9e7df3b170197e7785ea25e8f3376782 | |
parent | ff54d013ca6aef8dd34b3cd3b98a82c609e1e237 (diff) | |
download | gnu-guix-a7748bbab0b6cdfdc4b02db3558001a5fe376cd6.tar gnu-guix-a7748bbab0b6cdfdc4b02db3558001a5fe376cd6.tar.gz |
gnu: Add ruby-uglifier.
-rw-r--r-- | gnu/packages/ruby.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 0b69b3d59a..b5a8822979 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7891,3 +7891,38 @@ but it can function as a stand-alone templating engine.") "Sprockets is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") (home-page "https://github.com/rails/sprockets") (license license:expat))) + +(define-public ruby-uglifier +(package + (name "ruby-uglifier") + (version "3.0.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "uglifier" version)) + (sha256 + (base32 + "05a7xqzzlliqbd32jfkmis08pb0cljns7jx14ybkqb9zbg7ph35h")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f)) ; Tests fail, perhaps they require npm? test-target "spec" + ;; #:phases + ;; (modify-phases %standard-phases + ;; (add-before 'check 'list + ;; (lambda _ + ;; (system* "rake" "js") + ;; (system* "gem" "list")))))) + (propagated-inputs + `(("ruby-execjs" ,ruby-execjs))) + ;; (native-inputs + ;; `(("bundler" ,bundler) + ;; ("ruby-rubocop" ,ruby-rubocop) + ;; ("ruby-rspec" ,ruby-rspec) + ;; ("ruby-sourcemap" ,ruby-sourcemap) + ;; ("ruby-duktape" ,ruby-duktape))) ; Use as the JS interpreter + (synopsis + "Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in Ruby") + (description + "Uglifier minifies JavaScript files by wrapping UglifyJS to be accessible in Ruby") + (home-page "http://github.com/lautis/uglifier") + (license license:expat))) |