From 30a2b39e5f98275cf4a1806a3dfd8fe6cd6e988f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 28 Oct 2023 15:45:23 +0300 Subject: [PATCH] gnu: rust-rustls-ffi-0.8: Build with newer cbindgen. * gnu/packages/crates-io.scm (rust-rustls-ffi-0.8)[arguments]: Add a phase to allow any version of rust-cbindgen. [cargo-development-inputs]: Replace rust-cbindgen-0.19 with 0.26. Change-Id: I72ef3f3782eeca89aaf896a1cf9ba2fc78d3c329 --- gnu/packages/crates-io.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index c96aa59862..9b78a2ae16 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63561,7 +63561,15 @@ rustc compiler.") ("rust-sct" ,rust-sct-0.7) ("rust-webpki" ,rust-webpki-0.22)) #:cargo-development-inputs - (("rust-cbindgen" ,rust-cbindgen-0.19)))) + (("rust-cbindgen" ,rust-cbindgen-0.26)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'adjust-cbindgen-requirement + ;; The Cargo.toml in the git repository doesn't specify + ;; a version requirement for cbindgen. + (lambda _ + (substitute* "Cargo.toml" + (("0\\.19\\.0") "*"))))))) (native-inputs (list perl)) (home-page "https://github.com/rustls/rustls-ffi")