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.
This commit is contained in:
Efraim Flashner 2023-02-22 12:14:17 +02:00
parent 315a30e55c
commit e4edd20999
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -11031,8 +11031,34 @@ (define-public rust-clap-conf-0.1
how to behave across the three main input sources")
(license license:expat)))
(define-public rust-clap-derive-4
(package
(name "rust-clap-derive")
(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 "1s4c4005xsdw5zlq8z5h02mgjcsqgcd1ydxg6iird49fcxyjfjk8"))))
(build-system cargo-build-system)
(arguments
(list #: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://clap.rs/")
(synopsis "Procedural macro crate for Clap")
(description
"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
@ -11042,7 +11068,6 @@ (define-public rust-clap-derive-3
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0r9az0cl33xx0i9g18l56l3vd5ayjvcflvza2gdf8jwcab78n37a"))))
(build-system cargo-build-system)
(arguments
(list #:skip-build? #t
#:cargo-inputs
@ -11051,12 +11076,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 "Procedural macro crate for Clap")
(description
"This package provides the procedural macro crate for Clap.")
(license (list license:expat license:asl2.0))))
("rust-syn" ,rust-syn-1))))))
(define-public rust-clap-3
(package