Subject: [PATCH 12/14] gnu: rust-clap-derive-3: Update to 3.1.18.

From: Gabriel Arazas <[email-masked]>
Date: Fri, 17 Jun 2022 19:59:13 +0800

* gnu/packages/crates-io.scm (rust-clap-derive-3): Update to 3.1.18.
(rust-clap-derive-3-beta): New variable and inherit above.
---
 gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 83222059fd..3d18a478dd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11190,6 +11190,34 @@ (define-public rust-clang-sys-0.11
 
 (define-public rust-clap-derive-3
   (package
+    (name "rust-clap-derive")
+    (version "3.1.18")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "clap_derive" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0g53w6qkqcc122bqh51jzfg51147il643idvq1czxkr2x5306ci5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-heck" ,rust-heck-0.4) ("rust-proc-macro-error" ,rust-proc-macro-error-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/clap-rs/clap/tree/master/clap_derive")
+    (synopsis
+     "Parse command line argument by defining a struct, derive crate.")
+    (description
+     "This package provides a parse command line argument by defining a struct,
+derive crate.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-clap-derive-3-beta
+  (package
+    (inherit rust-clap-derive-3)
     (name "rust-clap-derive")
     (version "3.0.0-beta.2")
     (source
@@ -11210,14 +11238,7 @@ (define-public rust-clap-derive-3
          ,rust-proc-macro-error-1)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
-    (home-page "https://clap.rs/")
-    (synopsis
-     "Parse command line argument by defining a struct, derive crate")
-    (description
-     "This package provides a parse command line argument by defining a struct,
-derive crate.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-clap-3
   (package
-- 
2.36.1