diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:58:56 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-18 22:16:32 +0000 |
commit | 9675daad6b2a129bcf7d2e72e0a114cf2f07073a (patch) | |
tree | 484a874caf73f18ed0e021258cc9c663782c8216 /gnu/packages | |
parent | e7b615fb4f200af838b98718060e2d17a8a0f098 (diff) | |
download | guix-9675daad6b2a129bcf7d2e72e0a114cf2f07073a.tar guix-9675daad6b2a129bcf7d2e72e0a114cf2f07073a.tar.gz |
gnu: Add ruby-uglifier.
Diffstat (limited to 'gnu/packages')
-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))) |