From f2543ed5502899cb22353576fd17e8dc60d62f30 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Mar 2024 13:34:29 +0200 Subject: gnu: Add rust-windows-0.52. * gnu/packages/crates-windows.scm (rust-windows-0.52): New variable. (rust-windows-0.48): Inherit from rust-windows-0.52. Change-Id: Ide0e31b98d0577841d58b2e71ed4313abf25c0a2 --- gnu/packages/crates-windows.scm | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm index 2cdd5c73b5..9594013764 100644 --- a/gnu/packages/crates-windows.scm +++ b/gnu/packages/crates-windows.scm @@ -1255,23 +1255,23 @@ for Rust.") "Contains function definitions for the Windows API library ws2_32.") (license license:expat))) -(define-public rust-windows-0.48 +(define-public rust-windows-0.52 (package (name "rust-windows") - (version "0.48.0") + (version "0.52.0") (source (origin (method url-fetch) (uri (crate-uri "windows" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "03vh89ilnxdxdh0n9np4ns4m10fvm93h3b0cc05ipg3qq1mqi1p6")))) + (base32 "1gnh210qjlprpd1szaq04rjm1zqgdm9j7l9absg0kawi2rwm72p4")))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs - (("rust-windows-implement" ,rust-windows-implement-0.48) - ("rust-windows-interface" ,rust-windows-interface-0.48) - ("rust-windows-targets" ,rust-windows-targets-0.48)))) + `(#:cargo-inputs (("rust-windows-core" ,rust-windows-core-0.52) + ("rust-windows-implement" ,rust-windows-implement-0.52) + ("rust-windows-interface" ,rust-windows-interface-0.52) + ("rust-windows-targets" ,rust-windows-targets-0.52)))) (home-page "https://github.com/microsoft/windows-rs") (synopsis "Rust for Windows") (description "The windows crate lets you call any Windows API past, @@ -1280,6 +1280,24 @@ describing the API and right into your Rust package where you can call them as if they were just another Rust module.") (license (list license:expat license:asl2.0)))) +(define-public rust-windows-0.48 + (package + (inherit rust-windows-0.52) + (name "rust-windows") + (version "0.48.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "windows" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03vh89ilnxdxdh0n9np4ns4m10fvm93h3b0cc05ipg3qq1mqi1p6")))) + (arguments + `(#:cargo-inputs + (("rust-windows-implement" ,rust-windows-implement-0.48) + ("rust-windows-interface" ,rust-windows-interface-0.48) + ("rust-windows-targets" ,rust-windows-targets-0.48)))))) + (define-public rust-windows-0.46 (package (inherit rust-windows-0.48) -- cgit v1.2.3