diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:40:59 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-18 17:37:29 +0000 |
commit | 24aa5d01c31db2029ed9b8104576f5ff8d5b4054 (patch) | |
tree | 32e150150e9962a5ea1fe3f44b9c170354bcca1a /gnu/packages | |
parent | 6f71726cbb5ae637a5675e297781436532165adf (diff) | |
download | guix-24aa5d01c31db2029ed9b8104576f5ff8d5b4054.tar guix-24aa5d01c31db2029ed9b8104576f5ff8d5b4054.tar.gz |
gnu: Add ruby-yajl-ruby.
* gnu/packages/ruby.scm (ruby-yajl-ruby): New variable.
Diffstat (limited to 'gnu/packages')
-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 dcf4cda26a..5860de5831 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4981,3 +4981,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.3.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "yajl-ruby" version)) + (sha256 + (base32 + "1rn4kc9fha990yd252wglh6rcyh35cavm1vpyfj8krlcwph09g30")))) + (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-rspe" ,ruby-rspec))) + (synopsis + "Ruby C bindings to the excellent Yajl JSON stream-based parser library.") + (description + "Ruby C bindings to the excellent Yajl JSON stream-based parser library.") + (home-page + "http://github.com/brianmario/yajl-ruby") + (license license:expat))) |