diff mbox series

[bug#56037,12/14] gnu: rust-clap-derive-3: Update to 3.1.18.

Message ID b80f7d0549dfeb6de5617e4ac06d6ec81bd1f93d.1655465109.git.foo.dogsquared@gmail.com
State New
Headers show
Series [bug#56037,01/14] gnu: Add rust-kstring-2. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Gabriel Arazas June 17, 2022, 11:59 a.m. UTC
* 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(-)

Comments

M June 18, 2022, 8:27 p.m. UTC | #1
Gabriel Arazas schreef op vr 17-06-2022 om 19:59 [+0800]:
> +                "0g53w6qkqcc122bqh51jzfg51147il643idvq1czxkr2x5306ci5"))))

FWIW, this hash matched what I've got in antioxidant.
diff mbox series

Patch

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