From a95171d412038fc77d1820a41602ec5bc78ab41e Mon Sep 17 00:00:00 2001 From: Tomas Volf <~@wolfsden.cz> Date: Thu, 15 Feb 2024 21:26:57 +0100 Subject: [PATCH] gnu: Add rust-windows-bindgen-0.52. * gnu/packages/crates-windows.scm (rust-windows-bindgen-0.52): New variable. (rust-windows-bindgen-0.51): Inherit from rust-windows-bindgen-0.52. Change-Id: Ib84ff26569bc34d94c1a69062d70960eac58152d Signed-off-by: Efraim Flashner --- gnu/packages/crates-windows.scm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm index ac2271e5ad..e50c63f80f 100644 --- a/gnu/packages/crates-windows.scm +++ b/gnu/packages/crates-windows.scm @@ -1527,8 +1527,31 @@ crate.") (base32 "1hpk0n2z0jzzvwlvs98b75sa4q920953nqfc119rv19nwm0mlsaj")))))) +(define-public rust-windows-bindgen-0.52 + (package + (name "rust-windows-bindgen") + (version "0.52.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "windows-bindgen" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "071lrbhbvh0l8m1wf5000xxmcry1gjpqdxcqm23qmss9d05zn3lp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-rayon" ,rust-rayon-1) + ("rust-syn" ,rust-syn-2) + ("rust-windows-metadata" ,rust-windows-metadata-0.52)))) + (home-page "https://github.com/microsoft/windows-rs") + (synopsis "Windows metadata compiler") + (description "Windows metadata compiler.") + (license (list license:expat license:asl2.0)))) + (define-public rust-windows-bindgen-0.51 (package + (inherit rust-windows-bindgen-0.52) (name "rust-windows-bindgen") (version "0.51.1") (source @@ -1538,16 +1561,11 @@ crate.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0xfdq4q958qal5iks8xkaanf7w3akzfxc58dxvz7amhjg2vic7xw")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-rayon" ,rust-rayon-1) ("rust-syn" ,rust-syn-2) - ("rust-windows-metadata" ,rust-windows-metadata-0.51)))) - (home-page "https://github.com/microsoft/windows-rs") - (synopsis "Windows metadata compiler") - (description "Windows metadata compiler.") - (license (list license:expat license:asl2.0)))) + ("rust-windows-metadata" ,rust-windows-metadata-0.51)))))) (define-public rust-windows-i686-gnu-0.52 (package