diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:40:59 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-16 07:38:06 +0100 |
commit | b15159d2b5b8fff36cdc5e4854d3977617eb8d13 (patch) | |
tree | 8011b411b3bd90d7a805716922eed6067885272f | |
parent | d4b95d22f6c9e1150ec6e4c83dba201784241705 (diff) | |
download | guix-b15159d2b5b8fff36cdc5e4854d3977617eb8d13.tar guix-b15159d2b5b8fff36cdc5e4854d3977617eb8d13.tar.gz |
gnu: Add ruby-yajl-ruby.
* gnu/packages/ruby.scm (ruby-yajl-ruby): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9a74f16c01..95ecdc4916 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4983,3 +4983,36 @@ Markdown.") in standard Ruby syntax.") (home-page "https://github.com/ruby/rake") (license license:expat))) + +(define-public ruby-yajl-ruby + (package + (name "ruby-yajl-ruby") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "yajl-ruby" version)) + (sha256 + (base32 + "01bk8pi6h9wdm0ikjqvl1nxlkrxv3q74m3yfg64va9wvk9sqjvvw")))) + (build-system ruby-build-system) + (arguments + '(#:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-before 'check 'patch-test-to-update-load-path + (lambda _ + (substitute* "spec/parsing/large_number_spec.rb" + (("require \"yajl\"") + "$LOAD_PATH << 'lib'; require 'yajl'")) + #t))))) + (native-inputs + `(("ruby-rake-compiler" ,ruby-rake-compiler) + ("ruby-rspec" ,ruby-rspec))) + (synopsis "Streaming JSON parsing and encoding library for Ruby") + (description + "Ruby C bindings to the Yajl JSON stream-based parser library. The API +is compatible with the JSON gem, so yajl-ruby can act as a drop in +replacement.") + (home-page "https://github.com/brianmario/yajl-ruby") + (license license:expat))) |