[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30689] [PATCH 39/39] gnu: Add ruby-rails.
From: |
Christopher Baines |
Subject: |
[bug#30689] [PATCH 39/39] gnu: Add ruby-rails. |
Date: |
Mon, 28 Jan 2019 17:36:20 +0000 |
* gnu/packages/rails.scm (ruby-rails): New variable.
---
gnu/packages/rails.scm | 53 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index a45dca65d1..2d7ccceff7 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -412,3 +412,56 @@ application bootup, plugins, generators, and Rake tasks.")
(home-page
"https://github.com/rails/sprockets-rails")
(license license:expat)))
+
+(define-public ruby-rails
+ (package
+ (name "ruby-rails")
+ (version "5.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rails" version))
+ (sha256
+ (base32
+ "1m9cszds68dsiycciiayd3c9g90s2yzn1izkr3gpgqkfw6dmvzyr"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ ;; This gem acts as glue between the gems that actually make up
+ ;; Rails. The important thing to check is that the gemspec matches up
+ ;; with the Guix packages and Rubygems can successfully activate the
+ ;; Rails gem.
+ ;;
+ ;; The following check phase tests this.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? outputs #:allow-other-keys)
+ (setenv "GEM_PATH"
+ (string-append
+ (getenv "GEM_PATH")
+ ":"
+ (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
+ (when tests?
+ (invoke "ruby" "-e" "gem 'rails'"))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-activesupport" ,ruby-activesupport)
+ ("ruby-actionpack" ,ruby-actionpack)
+ ("ruby-actionview" ,ruby-actionview)
+ ("ruby-activemodel" ,ruby-activemodel)
+ ("ruby-activerecord" ,ruby-activerecord)
+ ("ruby-actionmailer" ,ruby-actionmailer)
+ ("ruby-activejob" ,ruby-activejob)
+ ("ruby-actioncable" ,ruby-actioncable)
+ ("ruby-activestorage" ,ruby-activestorage)
+ ("ruby-railties" ,ruby-railties)
+ ("bundler" ,bundler)
+ ("ruby-sprockets-rails" ,ruby-sprockets-rails)))
+ (synopsis "Full-stack web framework optimized for programmer happiness")
+ (description
+ "Ruby on Rails is a full-stack web framework optimized for programmer
+happiness and sustainable productivity. It encourages beautiful code by
+favoring convention over configuration.")
+ (home-page "https://rubyonrails.org/")
+ (license license:expat)))
--
2.20.1
- [bug#30689] [PATCH 16/39] gnu: Add ruby-prawn-manual-builder., (continued)
- [bug#30689] [PATCH 16/39] gnu: Add ruby-prawn-manual-builder., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 13/39] gnu: Add ruby-activerecord., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 23/39] gnu: Add ruby-rails-dom-testing., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 30/39] gnu: Add ruby-actioncable., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 22/39] gnu: Add ruby-rails-html-sanitizer., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 24/39] gnu: Add ruby-erubi., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 26/39] gnu: Add ruby-actionpack., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 19/39] gnu: Add ruby-rr., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 29/39] gnu: Add ruby-nio4r., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 09/39] gnu: Add ruby-bump., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 39/39] gnu: Add ruby-rails.,
Christopher Baines <=
- [bug#30689] [PATCH 11/39] gnu: Add ruby-activemodel., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 35/39] gnu: Add ruby-sprockets., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 33/39] gnu: Add ruby-actionmailer., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 36/39] gnu: Add ruby-sprockets-rails., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 28/39] gnu: Add ruby-websocket-driver., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 38/39] gnu: Add ruby-activestorage., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 34/39] gnu: Add ruby-railties., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 27/39] gnu: Add ruby-websocket-extensions., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 37/39] gnu: Add ruby-marcel., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 02/39] gnu: ruby-minitest: Update to 5.11.3., Christopher Baines, 2019/01/28