Subject: [bug#66802] [PATCH 02/21] gnu: Add rust-tempfile-2.

From: Jaeme Sifat <[email-masked]>
Date: Sat, 28 Oct 2023 18:38:23 -0400

* gnu/packages/crates-io.scm (rust-tempfile-2): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: Ie95154dfd7ec161edfcd95a36a417cb0b4746ad8
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c77851df38..f6491a487d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -72512,6 +72512,26 @@ (define-public rust-tempfile-3
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-tempfile-2
+  (package
+    (inherit rust-tempfile-3)
+    (name "rust-tempfile")
+    (version "2.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tempfile" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q61byf232rra0vqxp4qp10wwwqsqqd45qjj80ql5f34vgljzkhi"))))
+    (arguments
+     `(#:tests? #f
+       #:cargo-inputs (("rust-kernel32-sys" ,rust-kernel32-sys-0.2)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-rand" ,rust-rand-0.3)
+                       ("rust-redox-syscall" ,rust-redox-syscall-0.1)
+                       ("rust-winapi" ,rust-winapi-0.2))))))
+
 (define-public rust-tempfile-fast-0.3
   (package
     (name "rust-tempfile-fast")
-- 
2.41.0