From f2543ed5502899cb22353576fd17e8dc60d62f30 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Mar 2024 13:34:29 +0200 Subject: [PATCH] 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 | 36 ++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) 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,8 +1255,34 @@ (define-public rust-ws2-32-sys-0.2 "Contains function definitions for the Windows API library ws2_32.") (license license:expat))) +(define-public rust-windows-0.52 + (package + (name "rust-windows") + (version "0.52.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "windows" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1gnh210qjlprpd1szaq04rjm1zqgdm9j7l9absg0kawi2rwm72p4")))) + (build-system cargo-build-system) + (arguments + `(#: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, +present, and future using code generated on the fly directly from the metadata +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 @@ -1266,19 +1292,11 @@ (define-public rust-windows-0.48 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "03vh89ilnxdxdh0n9np4ns4m10fvm93h3b0cc05ipg3qq1mqi1p6")))) - (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)))) - (home-page "https://github.com/microsoft/windows-rs") - (synopsis "Rust for Windows") - (description "The windows crate lets you call any Windows API past, -present, and future using code generated on the fly directly from the metadata -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)))) + ("rust-windows-targets" ,rust-windows-targets-0.48)))))) (define-public rust-windows-0.46 (package