summary refs log tree commit diff
path: root/gnu/packages/rails.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-06-28 08:41:22 +0100
committerChristopher Baines <mail@cbaines.net>2023-07-10 08:26:00 +0100
commit158b3dc693c8991caac85945f861f74f47274e71 (patch)
treef09ce085fd5785ec49e793805e6b36430b2bf183 /gnu/packages/rails.scm
parent0ea78508fe2e03bc39b13cfb35289a02b819ff9c (diff)
downloadguix-158b3dc693c8991caac85945f861f74f47274e71.tar.gz
gnu: ruby-marcel: Fix build.
* gnu/packages/rails.scm (ruby-marcel)[arguments]: Remove the byebug
dependency.
[native-inputs]: Remove ruby-byebug.
Diffstat (limited to 'gnu/packages/rails.scm')
-rw-r--r--gnu/packages/rails.scm31
1 files changed, 19 insertions, 12 deletions
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm
index fc9a8f04e6..de0e17440e 100644
--- a/gnu/packages/rails.scm
+++ b/gnu/packages/rails.scm
@@ -977,18 +977,25 @@ already included in Rails.")
                 "1i1x24afmn09n48fj4yz2pdm6vlfnq14gism0cgxsyqmlrvsxajn"))))
     (build-system ruby-build-system)
     (arguments
-     (list #:test-target "default"
-           #:phases #~(modify-phases %standard-phases
-                        (add-before 'check 'disable-problematic-tests
-                          (lambda _
-                            (substitute* "test/mime_type_test.rb"
-                              ;; One test fails because of the newer rack
-                              ;; version used (see:
-                              ;; https://github.com/rails/marcel/issues/91).
-                              (("test \"gets content type.*" all)
-                               (string-append
-                                all "    skip('fails on guix')\n"))))))))
-    (native-inputs (list ruby-byebug ruby-nokogiri ruby-rack))
+     (list
+      #:test-target "default"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch
+            (lambda _
+              ;; Remove byebug dependency
+              (substitute* "test/test_helper.rb"
+                (("require 'byebug'") ""))))
+          (add-before 'check 'disable-problematic-tests
+            (lambda _
+              (substitute* "test/mime_type_test.rb"
+                ;; One test fails because of the newer rack
+                ;; version used (see:
+                ;; https://github.com/rails/marcel/issues/91).
+                (("test \"gets content type.*" all)
+                 (string-append
+                  all "    skip('fails on guix')\n"))))))))
+    (native-inputs (list ruby-nokogiri ruby-rack))
     (propagated-inputs (list ruby-mimemagic))
     (synopsis "MIME type detection using magic numbers, filenames and extensions")
     (description