summary refs log tree commit diff
path: root/gnu/packages/rails.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-09 15:44:30 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-28 22:22:35 -0400
commit1d211e237d218ddcf0e51495627a34d61f9bf93f (patch)
tree47e16fd63664dab2b5c6f70d971329f777bb138c /gnu/packages/rails.scm
parentc22dbc65f530d473a8a3a25be9be460c2e7ef8ab (diff)
downloadguix-1d211e237d218ddcf0e51495627a34d61f9bf93f.tar.gz
gnu: ruby-actiontext: Update to 7.0.4.3.
* gnu/packages/rails.scm (ruby-actiontext): Update to 7.0.4.3.
[source]: Use ruby-rail-monorepo.
[arguments]: Add #:phases argument.
Diffstat (limited to 'gnu/packages/rails.scm')
-rw-r--r--gnu/packages/rails.scm28
1 files changed, 15 insertions, 13 deletions
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index 6c41466ac3..6e26c8966a 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -415,21 +415,23 @@ useful when writing tests.")
 (define-public ruby-actiontext
   (package
     (name "ruby-actiontext")
-    (version "6.1.3")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (rubygems-uri "actiontext" version))
-        (sha256
-         (base32
-          "04k4z4xj40sbzbgx0x9m6i8k0nc22jb6dkrlslj16p2z2dfnwhqg"))))
+    (version %ruby-rails-version)
+    (source ruby-rails-monorepo)
     (build-system ruby-build-system)
-   (arguments
-    '(;; No included tests
-      #:tests? #f))
+    (arguments
+     (list
+      #:tests? #f                       ;avoid a cycle with ruby-rails
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'chdir
+            (lambda _
+              (chdir "actiontext"))))))
     (propagated-inputs
-     (list ruby-actionpack ruby-activerecord ruby-activestorage
-           ruby-activesupport ruby-nokogiri))
+     (list ruby-actionpack
+           ruby-activerecord
+           ruby-activestorage
+           ruby-activesupport
+           ruby-nokogiri))
     (synopsis "Edit and display rich text in Rails applications")
     (description
      "ActionText edits and displays rich text in Rails applications.")