guix-commits
[Top][All Lists]
Advanced

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

45/62: gnu: Add rust-structmeta-0.2.


From: guix-commits
Subject: 45/62: gnu: Add rust-structmeta-0.2.
Date: Wed, 13 Mar 2024 16:22:24 -0400 (EDT)

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

commit fae09b7ecc3f1eddaba3c8e29f4d80d27eab237b
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:02:35 2024 +0100

    gnu: Add rust-structmeta-0.2.
    
    * gnu/packages/crates-io.scm (rust-structmeta-0.2): Add variable.
    (rust-structmeta-0.1): Inherit rust-structmeta-0.2.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 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 6c3ed909bb..ead1810a59 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -65704,8 +65704,33 @@ and Jaro-Winkler.")
         (base32
          "0z3zzvmilfldp4xw42qbkjf901dcnbk58igrzsvivydjzd24ry37"))))))
 
+(define-public rust-structmeta-0.2
+  (package
+    (name "rust-structmeta")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "structmeta" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bcj4c2p2j091mn9ld2hbcx77flqjx65ihb9gbb5c12gal4rxbbq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-structmeta-derive" ,rust-structmeta-derive-0.2)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/frozenlib/structmeta";)
+    (synopsis "Parse Rust's attribute arguments by defining a struct.")
+    (description "This package lets you parse Rust's attribute arguments by
+defining a struct.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-structmeta-0.1
   (package
+    (inherit rust-structmeta-0.2)
     (name "rust-structmeta")
     (version "0.1.6")
     (source (origin
@@ -65715,18 +65740,12 @@ and Jaro-Winkler.")
               (sha256
                (base32
                 "0alyl12b7fab8izrpliil73sxs1ivr5vm0pisallmxlb4zb44j0h"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-structmeta-derive" ,rust-structmeta-derive-0.1)
-        ("rust-syn" ,rust-syn-1))))
-    (home-page "https://github.com/frozenlib/structmeta";)
-    (synopsis "Parse Rust's attribute arguments by defining a struct.")
-    (description "This package lets you parse Rust's attribute arguments by
-defining a struct.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-structmeta-derive-0.2
   (package



reply via email to

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