Subject: [bug#66842] [PATCH 08/39] gnu: Add rust-windows-x86-64-msvc-0.39.

From: Jaeme Sifat <[email-masked]>
Date: Mon, 30 Oct 2023 22:52:12 -0400

This patch also replaces the snippet code with gexps.

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

Change-Id: Ic1e6691e11acaa419d1e6a8fb9403f7648a61a0e
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3642a20c53..dc1cb35dc5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83816,7 +83816,7 @@ (define-public rust-windows-x86-64-msvc-0.48
                (base32
                 "12ipr1knzj2rwjygyllfi5mkd0ihnbi3r61gag5n2jgyk5bmyl8s"))
               (snippet
-               '(delete-file "lib/windows.0.48.0.lib"))))
+               #~(delete-file "lib/windows.0.48.0.lib"))))
     (build-system cargo-build-system)
     (arguments (list #:skip-build? #t))
     (home-page "https://github.com/microsoft/windows-rs")
@@ -83838,9 +83838,24 @@ (define-public rust-windows-x86-64-msvc-0.42
                (base32
                 "1w5r0q0yzx827d10dpjza2ww0j8iajqhmb54s735hhaj66imvv4s"))
               (snippet
-               '(delete-file "lib/windows.lib"))))
+               #~(delete-file "lib/windows.lib"))))
     (arguments (list #:skip-build? #t))))
 
+(define-public rust-windows-x86-64-msvc-0.39
+  (package
+    (inherit rust-windows-x86-64-msvc-0.42)
+    (name "rust-windows-x86-64-msvc")
+    (version "0.39.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows_x86_64_msvc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02g8fy1sv8g0p4fi2yk62j9a5zwhcfknp9vwg1ifkjp97a440kay"))
+        (snippet
+         #~(delete-file "lib/windows.lib"))))))
+
 (define-public rust-windows-x86-64-msvc-0.36
   (package
     (inherit rust-windows-x86-64-msvc-0.42)
-- 
2.34.1