Subject: [bug#67919] [PATCH 03/55] gnu: Add rust-windows-x86-64-gnu-0.52.

From: Jaeme Sifat <[email-masked]>
Date: Tue, 19 Dec 2023 22:54:25 -0500

* gnu/packages/crates-io.scm (rust-windows-x86-64-gnu-0.52): New variable.

Change-Id: I209eaa845bbffbc0d6b78ed7d885a306f988e710
---
 gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++------------
 1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d634db8316..2b93182000 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89292,8 +89292,31 @@ (define-public rust-windows-tokens-0.32
 windows crate.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-windows-x86-64-gnu-0.52
+  (package
+    (name "rust-windows-x86-64-gnu")
+    (version "0.52.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows_x86_64_gnu" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zdy4qn178sil5sdm63lm7f0kkcjg6gvdwmcprd2yjmwn8ns6vrx"))
+       (snippet
+        #~(delete-file "lib/libwindows.0.52.0.a"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:skip-build? #t))
+    (home-page "https://github.com/microsoft/windows-rs")
+    (synopsis "Code gen support for the windows crate")
+    (description
+     "This package provides code gen support for the windows crate.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-windows-x86-64-gnu-0.48
   (package
+    (inherit rust-windows-x86-64-gnu-0.52)
     (name "rust-windows-x86-64-gnu")
     (version "0.48.0")
     (source (origin
@@ -89304,15 +89327,7 @@ (define-public rust-windows-x86-64-gnu-0.48
                (base32
                 "1cblz5m6a8q6ha09bz4lz233dnq5sw2hpra06k9cna3n3xk8laya"))
               (snippet
-               '(delete-file "lib/libwindows.0.48.0.a"))))
-    (build-system cargo-build-system)
-    (arguments
-     (list #:skip-build? #t))
-    (home-page "https://github.com/microsoft/windows-rs")
-    (synopsis "Code gen support for the windows crate")
-    (description
-     "This package provides code gen support for the windows crate.")
-    (license (list license:expat license:asl2.0))))
+               '(delete-file "lib/libwindows.0.48.0.a"))))))
 
 (define-public rust-windows-x86-64-gnu-0.42
   (package
@@ -89327,9 +89342,7 @@ (define-public rust-windows-x86-64-gnu-0.42
                (base32
                 "0dnbf2xnp3xrvy8v9mgs3var4zq9v9yh9kv79035rdgyp2w15scd"))
               (snippet
-               '(delete-file "lib/libwindows.a"))))
-    (arguments
-     (list #:skip-build? #t))))
+               '(delete-file "lib/libwindows.a"))))))
 
 (define-public rust-windows-x86-64-gnu-0.36
   (package
-- 
2.41.0