[bug#75677,rust-team,v2,06/81] gnu: rust-winreg-0.15: New variable.

Message ID 20250308033446.2101481-7-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:33 a.m. UTC
  * gnu/packages/crates-windows.scm (rust-winreg-0.15): New variable.
---
 gnu/packages/crates-windows.scm | 35 ++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index eece0e9ab5..bc06a978be 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -17,6 +17,7 @@ 
 ;;; Copyright © 2024 Jordan Moore <lockbox@struct.foo>
 ;;; Copyright © 2024 Murilo <murilo@disroot.org>
 ;;; Copyright © 2024 normally_js <normally_js@posteo.net>
+;;; Copyright © 2025 Aaron Covrig <aaron.covrig.us@ieee.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3154,10 +3155,42 @@  (define-public rust-winreg-0.50
                                    ("rust-serde-derive" ,rust-serde-derive-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))))
 
-(define-public rust-winreg-0.10
+(define-public rust-winreg-0.15
   (package
     (inherit rust-winreg-0.50)
     (name "rust-winreg")
+    (version "0.15.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "winreg" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1smcgljflh3xa37rasrgwdxmx8z1g6awp4y8dq5a81hcr0zjx34w"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 (substitute* "Cargo.toml"
+                   (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                    (string-append "\"^" version)))))))
+    (arguments
+     `(#:skip-build? #t ; OS not supported
+       #:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-winapi" ,rust-winapi-0.3)
+        ("rust-chrono" ,rust-chrono-0.4)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-rand" ,rust-rand-0.3)
+        ("rust-serde-bytes" ,rust-serde-bytes-0.11)
+        ("rust-serde-transcode" ,rust-serde-transcode-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-tempfile" ,rust-tempfile-3))))))
+
+(define-public rust-winreg-0.10
+  (package
+    (inherit rust-winreg-0.15)
+    (name "rust-winreg")
     (version "0.10.1")
     (source
      (origin