From 2b0d43beea8d933013c8ebef04748f2945d7d208 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Mar 2024 14:27:04 +0300 Subject: [PATCH] gnu: Add rust-winreg-0.52. * gnu/packages/crates-windows.scm (rust-winreg-0.52): New variable. (rust-winreg-0.51): Inherit from rust-winreg-0.52. Change-Id: Ibb4ca45b3cd5c81a6319a2debd2f9d707d8a3e05 --- gnu/packages/crates-windows.scm | 43 ++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm index 8a977487f0..36c17cc9e1 100644 --- a/gnu/packages/crates-windows.scm +++ b/gnu/packages/crates-windows.scm @@ -958,8 +958,44 @@ color in a Windows console.") #:cargo-inputs (("rust-winapi" ,rust-winapi-0.3)))))) +(define-public rust-winreg-0.52 + (package + (name "rust-winreg") + (version "0.52.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "winreg" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19gh9vp7mp1ab84kc3ag48nm9y7xgjhh3xa4vxss1gylk1rsaxx2")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "Cargo.toml" + (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version) + (string-append "\"^" version))))))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ; OS not supported + #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-serde" ,rust-serde-1) + ("rust-windows-sys" ,rust-windows-sys-0.48)) + #:cargo-development-inputs (("rust-rand" ,rust-rand-0.3) + ("rust-serde-transcode" ,rust-serde-transcode-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/gentoo90/winreg-rs") + (synopsis "Rust bindings to the MS Windows Registry API") + (description + "This package provides Rust bindings to MS Windows Registry API.") + (license license:expat))) + (define-public rust-winreg-0.51 (package + (inherit rust-winreg-0.52) (name "rust-winreg") (version "0.51.0") (source @@ -984,12 +1020,7 @@ color in a Windows console.") #:cargo-development-inputs (("rust-rand" ,rust-rand-0.3) ("rust-serde-bytes" ,rust-serde-bytes-0.11) ("rust-serde-derive" ,rust-serde-derive-1) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/gentoo90/winreg-rs") - (synopsis "Rust bindings to the MS Windows Registry API") - (description - "This package provides Rust bindings to MS Windows Registry API.") - (license license:expat))) + ("rust-tempfile" ,rust-tempfile-3)))))) (define-public rust-winreg-0.50 (package