diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-06-10 23:10:31 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-06-10 23:10:31 +0300 |
commit | b0920c5a90ba374a13a509bd9440a983b1cacbaa (patch) | |
tree | 5a3c3b390ef1ed372d6635cf620f2b2517dec268 /gnu | |
parent | bbf3497c37f7ca63d0bfad7beea969e83b4338af (diff) |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 71d3385501..48cb023429 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11064,15 +11064,39 @@ attributes.") #: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 @@ crate into a Cargo build.") (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 |