guix-commits
[Top][All Lists]
Advanced

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

32/111: gnu: Add rust-synstructure-0.13.


From: guix-commits
Subject: 32/111: gnu: Add rust-synstructure-0.13.
Date: Thu, 21 Nov 2024 08:33:25 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 72f6fa432f115efa42e53f404550d83bed7964ef
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 20 20:22:36 2024 +0200

    gnu: Add rust-synstructure-0.13.
    
    * gnu/packages/crates-io.scm (rust-synstructure-0.13): New variable.
    (rust-synstructure-0.12): Inherit from rust-synstructure-0.13.
    
    Change-Id: I7fab0d83a5b1d32c6cba8f1c576e746f6b2e7c10
---
 gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3374a1fa53..3dcc657485 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -80574,8 +80574,33 @@ the absence of concurrency.")
      "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
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs
+       (("rust-synstructure-test-traits" ,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
@@ -80587,7 +80612,6 @@ the absence of concurrency.")
        (sha256
         (base32
          "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -80603,12 +80627,7 @@ the absence of concurrency.")
          (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



reply via email to

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