Subject: [PATCH 094/156] gnu: Add rust-pear-codegen-0.2.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:53:11 +0100

* gnu/packages/crates-io.scm (rust-pear-codegen-0.2): New variable.
(rust-pear-codegen-0.1): Inherit from rust-pear-codegen-0.2.

Change-Id: I4ed58d199bcbbdd6af89d702cbf696e8a90a2d7d
---
 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 e22de86580e..220578631a5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50231,8 +50231,33 @@ (define-public rust-pear-0.1
     (description "This package provides a pear is a fruit.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pear-codegen-0.2
+  (package
+    (name "rust-pear-codegen")
+    (version "0.2.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pear_codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0xrwnlncg7l64gfy82vf6kq55ww7p6krq6bc3pqwymxpiq76f8if"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-proc-macro2-diagnostics" ,rust-proc-macro2-diagnostics-0.10)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "")
+    (synopsis "A (codegen) pear is a fruit.")
+    (description
+     "This package provides a (codegen) pear is a fruit.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pear-codegen-0.1
   (package
+    (inherit rust-pear-codegen-0.2)
     (name "rust-pear-codegen")
     (version "0.1.5")
     (source
@@ -50242,7 +50267,6 @@ (define-public rust-pear-codegen-0.1
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "19lcpkfspizd4ywwvca6rxgc311m070k3ndvwa9vrbw1snjqna60"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -50250,12 +50274,7 @@ (define-public rust-pear-codegen-0.1
         ("rust-quote" ,rust-quote-0.6)
         ("rust-syn" ,rust-syn-0.15)
         ("rust-version-check" ,rust-version-check-0.9)
-        ("rust-yansi" ,rust-yansi-0.5))))
-    (home-page "https://crates.io/crates/pear_codegen")
-    (synopsis "Codegen for pear")
-    (description
-     "This package provides a (codegen) pear is a fruit.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-yansi" ,rust-yansi-0.5))))))
 
 (define-public rust-peeking-take-while-0.1
   (package
-- 
2.41.0