gnu: Add rust-cxx-gen-0.7.

* gnu/packages/crates-io.scm (rust-cxx-gen-0.7): New variable.
(rust-cxx-gen-0.6): Inherit from ruxt-cxx-gen-0.7.
This commit is contained in:
Efraim Flashner 2021-06-10 23:10:31 +03:00
parent bbf3497c37
commit b0920c5a90
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -11064,15 +11064,39 @@ (define-public rust-cxx-build-0.5
#:cargo-development-inputs
(("rust-cxx-gen" ,rust-cxx-gen-0.6)
("rust-pkg-config" ,rust-pkg-config-0.3))))
(define-public rust-cxx-gen-0.7
(package
(name "rust-cxx-gen")
(version "0.7.49")
(source
(origin
(method url-fetch)
(uri (crate-uri "cxx-gen" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"08v366jxd2vc8jc2cbvrga0866pwfcaq6hl8yylfx0vhs2n53j53"))))
(build-system cargo-build-system)
(arguments
`(#:rust ,rust-1.48 ; or newer
#:cargo-inputs
(("rust-cc" ,rust-cc-1)
("rust-codespan-reporting" ,rust-codespan-reporting-0.11)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))
(home-page "https://cxx.rs")
(synopsis "C++ code generator")
(description
"This package provides a C++ code generator for integrating the @code{cxx}
crate into a Cargo build.")
crate into higher level tools.")
(license (list license:expat license:asl2.0))))
(define-public rust-cxx-gen-0.6
(package
(inherit rust-cxx-gen-0.7)
(name "rust-cxx-gen")
(version "0.6.7")
(source
@ -11084,20 +11108,13 @@ (define-public rust-cxx-gen-0.6
(sha256
(base32
"0avkca16wjy0paplq1ycaf04bj62agfj0awyhyzxyfpdn9rm45j2"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-cc" ,rust-cc-1)
("rust-codespan-reporting" ,rust-codespan-reporting-0.9)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))
(home-page "https://cxx.rs")
(synopsis "C++ code generator")
(description
"This package provides a C++ code generator for integrating the @code{cxx}
crate into higher level tools.")
(license (list license:expat license:asl2.0))))
("rust-syn" ,rust-syn-1))))))
(define-public rust-cxx-test-suite-0.0.0
(package