guix-patches
[Top][All Lists]
Advanced

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

[bug#71076] [PATCH 40/81] gnu: Add rust-synstructure-0.13.


From: Herman Rimm
Subject: [bug#71076] [PATCH 40/81] gnu: Add rust-synstructure-0.13.
Date: Mon, 20 May 2024 10:58:45 +0200

* gnu/packages/crates-io.scm (rust-synstructure-0.13): Add variable.
(rust-synstructure-0.12): Inherit from rust-synstructure-0.13.

Change-Id: I9326c5874a67e0ead6161f91d3dca04193c46b44
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9485ed62d4..7db9254402 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79421,8 +79421,34 @@ (define-public rust-synom-0.11
      "Stripped-down Nom parser used by Syn.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-synstructure-0.13
+  (package
+    (name "rust-synstructure")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "synstructure" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "0wc9f002ia2zqcbj0q2id5x6n7g1zjqba7qkg2mr0qvvmdk7dby8"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-proc-macro2-1 rust-quote-1 rust-syn-2)
+      #:cargo-development-inputs
+      (list rust-synstructure-test-traits-0.1)))
+    (home-page "https://github.com/mystor/synstructure";)
+    (synopsis "Helper methods and macros for custom derives")
+    (description
+     "This package provides Helper methods and macros for custom
+derives.")
+    (license license:expat)))
+
 (define-public rust-synstructure-0.12
   (package
+    (inherit rust-synstructure-0.13)
     (name "rust-synstructure")
     (version "0.12.6")
     (source
@@ -79434,7 +79460,6 @@ (define-public rust-synstructure-0.12
        (sha256
         (base32
          "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -79450,12 +79475,8 @@ (define-public rust-synstructure-0.12
          (add-after 'unpack 'fix-test
            (lambda _
              (substitute* "src/lib.rs"
-               (("non_upper_case_globals )") "non_upper_case_globals)")))))))
-    (home-page "https://github.com/mystor/synstructure";)
-    (synopsis "Helper methods and macros for custom derives")
-    (description
-     "This package provides helper methods and macros for custom derives.")
-    (license license:expat)))
+               (("non_upper_case_globals )")
+                "non_upper_case_globals)")))))))))
 
 (define-public rust-synstructure-test-traits-0.1
   (package
-- 
2.41.0






reply via email to

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