From 6dd92fc344ff4d54d6044bf6ce72c8c02087798c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 30 Aug 2015 09:22:12 -0400 Subject: [PATCH 3/4] gnu: Add ruby-json. * gnu/packages/ruby.scm (ruby-json): New variable. --- gnu/packages/ruby.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 721785e..a0308c7 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -841,3 +841,22 @@ utilities for Ruby.") aware transformations between times in different time zones.") (home-page "http://tzinfo.github.io") (license license:expat))) + +(define-public ruby-json + (package + (name "ruby-json") + (version "1.8.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "json" version)) + (sha256 + (base32 + "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc")))) + (build-system ruby-build-system) + (arguments '(#:tests? #f)) ; dependency cycle with sdoc + (synopsis "JSON library for Ruby") + (description "This Ruby library provides a JSON implementation written as +a native C extension.") + (home-page "http://json-jruby.rubyforge.org/") + (license (list license:ruby license:gpl2)))) ; GPL2 only -- 2.5.0