guix-patches
[Top][All Lists]
Advanced

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

[bug#75096] [PATCH rust-team 9/9] gnu: rust-synstructure-0.12: Use snipp


From: Herman Rimm
Subject: [bug#75096] [PATCH rust-team 9/9] gnu: rust-synstructure-0.12: Use snippet.
Date: Wed, 25 Dec 2024 20:49:55 +0100

* gnu/packages/crates-io.scm (rust-synstructure-0.12): Add snippet.
[phases]: Remove fix-test phase.

Change-Id: Ie8f966b4f76c4de18a0e4a18a89c81064b8a6beb
---
 gnu/packages/crates-io.scm | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b8d6bedf3..859e6aaa7d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -84685,11 +84685,13 @@ (define-public rust-synstructure-0.12
      (origin
        (method url-fetch)
        (uri (crate-uri "synstructure" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk"))))
+        (base32 "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "src/lib.rs"
+                    (("non_upper_case_globals )")
+                     "non_upper_case_globals)")))))
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -84698,14 +84700,8 @@ (define-public rust-synstructure-0.12
         ("rust-syn" ,rust-syn-1)
         ("rust-quote" ,rust-quote-1))
        #:cargo-development-inputs
-       (("rust-synstructure-test-traits" ,rust-synstructure-test-traits-0.1))
-       #:phases
-       (modify-phases %standard-phases
-         ;; https://github.com/mystor/synstructure/issues/51
-         (add-after 'unpack 'fix-test
-           (lambda _
-             (substitute* "src/lib.rs"
-               (("non_upper_case_globals )") "non_upper_case_globals)")))))))))
+       (("rust-synstructure-test-traits"
+         ,rust-synstructure-test-traits-0.1))))))
 
 (define-public rust-synstructure-test-traits-0.1
   (package
-- 
2.45.2






reply via email to

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