Subject: [PATCH 05/55] gnu: Add rust-windows-i686-gnu-0.52.

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

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

Change-Id: I0fe021db907d6a2fc592a66b4bdc5bbcbcb6ac3d
---
 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 d02b2bf685..255d9ec986 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -88758,8 +88758,31 @@ (define-public rust-windows-bindgen-0.51
     (description "Windows metadata compiler.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-windows-i686-gnu-0.52
+  (package
+    (name "rust-windows-i686-gnu")
+    (version "0.52.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows_i686_gnu" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04zkglz4p3pjsns5gbz85v4s5aw102raz4spj4b0lmm33z5kg1m2"))
+       (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-i686-gnu-0.48
   (package
+    (inherit rust-windows-i686-gnu-0.52)
     (name "rust-windows-i686-gnu")
     (version "0.48.0")
     (source (origin
@@ -88770,15 +88793,7 @@ (define-public rust-windows-i686-gnu-0.48
                (base32
                 "0hd2v9kp8fss0rzl83wzhw0s5z8q1b4875m6s1phv0yvlxi1jak2"))
               (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-i686-gnu-0.42
   (package
@@ -88793,9 +88808,7 @@ (define-public rust-windows-i686-gnu-0.42
                (base32
                 "0kx866dfrby88lqs9v1vgmrkk1z6af9lhaghh5maj7d4imyr47f6"))
               (snippet
-               '(delete-file "lib/libwindows.a"))))
-    (arguments
-     (list #:skip-build? #t))))
+               '(delete-file "lib/libwindows.a"))))))
 
 (define-public rust-windows-i686-gnu-0.36
   (package
-- 
2.41.0