Subject: [PATCH 100/156] gnu: Add rust-prost-derive-0.11.

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

* gnu/packages/crates-io.scm (rust-prost-derive-0.11): New variable.
(rust-prost-derive-0.9): Inherit from rust-prost-derive-0.11.

Change-Id: Iaaba985544c0b69513744a841a698d8cf3500592
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 63b25e75321..334ccefde28 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54529,8 +54529,36 @@ (define-public rust-proptest-derive-0.1
         ("rust-criterion" ,rust-criterion-0.2)
         ("rust-proptest" ,rust-proptest-0.9))))))
 
+(define-public rust-prost-derive-0.11
+  (package
+    (name "rust-prost-derive")
+    (version "0.11.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "prost-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1d3mw2s2jba1f7wcjmjd6ha2a255p2rmynxhm1nysv9w1z8xilp5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-itertools" ,rust-itertools-0.10)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/tokio-rs/prost")
+    (synopsis "Protocol Buffers implementation for the Rust language")
+    (description
+     "This package provides a Protocol Buffers implementation for the Rust
+language.")
+    (license license:asl2.0)))
+
+
 (define-public rust-prost-derive-0.9
   (package
+    (inherit rust-prost-derive-0.11)
     (name "rust-prost-derive")
     (version "0.9.0")
     (source
@@ -54540,7 +54568,6 @@ (define-public rust-prost-derive-0.9
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1zi0qway5anz5ik3k1yrc2av81sjcqvqy9lnivv0nzp0ccr1mk7r"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -54548,7 +54575,7 @@ (define-public rust-prost-derive-0.9
         ("rust-itertools" ,rust-itertools-0.10)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
+        ("rust-syn" ,rust-syn-1))))))
     (home-page "https://github.com/tokio-rs/prost")
     (synopsis "Protocol Buffers implementation for the Rust language")
     (description
-- 
2.41.0