aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:59:53 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-18 11:54:03 +0100
commit00cabe2f145d0aa7a0bb68e6163d201a5e339766 (patch)
treebb69831ebadea91d7e874a6551adabd4e855dac7 /gnu/packages
parent70bc2409a8e28b071f4bc1b64429dfeb5ad011db (diff)
downloadguix-00cabe2f145d0aa7a0bb68e6163d201a5e339766.tar
guix-00cabe2f145d0aa7a0bb68e6163d201a5e339766.tar.gz
gnu: Add ruby-jbuilder.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ruby.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c20c3dccb6..a1ee2c21d5 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7212,3 +7212,37 @@ https://github.com/flavorjones/loofah-activerecord).")
(home-page
"https://github.com/turbolinks/turbolinks-rails")
(license license:expat)))
+
+(define-public ruby-jbuilder
+ (package
+ (name "ruby-jbuilder")
+ (version "2.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "jbuilder" version))
+ (sha256
+ (base32
+ "1n3myqk2hdnidzzbgcdz2r1y4cr5vpz5nkfzs0lz4y9gkjbjyh2j"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'fix-dependencies'
+ (lambda _
+ (substitute* "Gemfile"
+ ((".*pry.*") ""))
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-mocha" ,ruby-mocha)
+ ("ruby-appraisal" ,ruby-appraisal)))
+ (propagated-inputs
+ `(("ruby-activesupport" ,ruby-activesupport)
+ ("ruby-multi-json" ,ruby-multi-json)))
+ (synopsis
+ "Create JSON structures via a Builder-style DSL")
+ (description
+ "Create JSON structures via a Builder-style DSL")
+ (home-page "https://github.com/rails/jbuilder")
+ (license license:expat)))