guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

223/470: gnu: Add rust-clap-derive-4.


From: guix-commits
Subject: 223/470: gnu: Add rust-clap-derive-4.
Date: Thu, 16 Mar 2023 03:01:13 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 049362e32352d9da372c1e41f2902e8afef5defb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Feb 22 12:14:17 2023 +0200

    gnu: Add rust-clap-derive-4.
    
    * gnu/packages/crates-io.scm (rust-clap-derive-4): New variable.
    (rust-clap-derive-3): Inherit from rust-clap-derive-4.
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5840bceda0..4e3ff7d538 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10869,24 +10869,22 @@ files and environment variables.  And make it easier 
for users to tell your prog
 how to behave across the three main input sources")
     (license license:expat)))
 
-(define-public rust-clap-derive-3
+(define-public rust-clap-derive-4
   (package
     (name "rust-clap-derive")
-    (version "3.2.18")
+    (version "4.1.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "clap_derive" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0r9az0cl33xx0i9g18l56l3vd5ayjvcflvza2gdf8jwcab78n37a"))))
+        (base32 "1s4c4005xsdw5zlq8z5h02mgjcsqgcd1ydxg6iird49fcxyjfjk8"))))
     (build-system cargo-build-system)
     (arguments
-     (list #:skip-build? #t
-           #:cargo-inputs
+     (list #:cargo-inputs
            `(("rust-heck" ,rust-heck-0.4)
-             ("rust-proc-macro-error"
-              ,rust-proc-macro-error-1)
+             ("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))))
@@ -10896,6 +10894,28 @@ how to behave across the three main input sources")
      "This package provides the procedural macro crate for Clap.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-clap-derive-3
+  (package
+    (inherit rust-clap-derive-4)
+    (name "rust-clap-derive")
+    (version "3.2.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clap_derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0r9az0cl33xx0i9g18l56l3vd5ayjvcflvza2gdf8jwcab78n37a"))))
+    (arguments
+     (list #: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))))))
+
 (define-public rust-clap-3
   (package
     (name "rust-clap")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]