diff options
-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 31ad2ddd63..560c6c9ba4 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7417,3 +7417,38 @@ https://github.com/flavorjones/loofah-activerecord).") (home-page "http://github.com/janlelis/unicode-display_width") (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))) |