guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

84/94: gnu: ruby-mapping: Fix build.


From: guix-commits
Subject: 84/94: gnu: ruby-mapping: Fix build.
Date: Mon, 3 Jul 2023 06:06:38 -0400 (EDT)

cbaines pushed a commit to branch ruby-team
in repository guix.

commit cf45f751a4869cd5716846d6e02b6dd638d52224
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Jul 1 09:41:26 2023 +0100

    gnu: ruby-mapping: Fix build.
    
    * gnu/packages/ruby.scm (ruby-mapping)[arguments]: Add 'patch phase.
---
 gnu/packages/ruby.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 137879bbc4..1a9a27a03e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4698,7 +4698,16 @@ It allows writing tests, checking results and automated 
testing in Ruby.")
                (base32
                 "0yhmqp8mprjqf9m7wzc4hhi50qbfax86r89w852csns0ijaffjjs"))))
     (build-system ruby-build-system)
-    (arguments (list #:test-target "spec"))
+    (arguments
+     (list
+      #:test-target "spec"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch
+            (lambda _
+              (substitute* "spec/mapping/model_spec.rb"
+                ;; From https://github.com/ioquatix/mapping/pull/2
+                (("offset:") "offset =")))))))
     (native-inputs (list ruby-rspec))
     (synopsis "Map model objects based on their class to a given output model")
     (description "The @code{mapping} gem maps model objects based on their



reply via email to

[Prev in Thread] Current Thread [Next in Thread]