Subject: [bug#68312] [PATCH 093/156] gnu: Add rust-pear-0.2.

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

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

Change-Id: I840a809db625fc096c362777778b9a2293d8bf2a
---
 gnu/packages/crates-io.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 82695f85f4a..e22de86580e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50188,8 +50188,31 @@ (define-public rust-pdqselect-0.1
 pdqsort.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-pear-0.2
+  (package
+    (name "rust-pear")
+    (version "0.2.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pear" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1j03s6m80iqldnm6jzh3k1fbyk0lxirx8bi4ivgq3k3sq7va1k2c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-inlinable-string" ,rust-inlinable-string-0.1)
+                       ("rust-pear-codegen" ,rust-pear-codegen-0.2)
+                       ("rust-yansi" ,rust-yansi-1))))
+    (home-page "https://crates.io/crates/pear")
+    (synopsis "Pear is a fruit")
+    (description "This package provides a pear is a fruit.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pear-0.1
   (package
+    (inherit rust-pear-0.2)
     (name "rust-pear")
     (version "0.1.5")
     (source
@@ -50199,7 +50222,6 @@ (define-public rust-pear-0.1
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "02lnp8c414z5ds0lskd4zxlalrjljzpkg8g6kizszij4h52sgprj"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
-- 
2.41.0