Subject: [PATCH 098/147] gnu: Add rust-fs-set-times-0.20.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:04:50 +0200

* gnu/packages/crates-io.scm (rust-fs-set-times-0.20): New variable.
(rust-fs-set-times-0.19): Inherit from rust-fs-set-times-0.20.

Change-Id: I3a24fd53fef201d766b40cd116d60e972e39373a
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f5c2d98550..c7ce1ad2a7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25426,8 +25426,31 @@ (define-public rust-fsio-0.4
 @end enumerate")
     (license license:asl2.0)))
 
+(define-public rust-fs-set-times-0.20
+  (package
+    (name "rust-fs-set-times")
+    (version "0.20.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "fs-set-times" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1yxqkl8khk1593ribn4s9v60vf375gi9sgw9hq6nk5svf9yk6fq3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-io-lifetimes" ,rust-io-lifetimes-2)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (home-page "https://github.com/bytecodealliance/fs-set-times")
+    (synopsis "Set filesystem timestamps")
+    (description "Set filesystem timestamps")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-fs-set-times-0.19
   (package
+    (inherit rust-fs-set-times-0.20)
     (name "rust-fs-set-times")
     (version "0.19.1")
     (source (origin
@@ -25437,16 +25460,11 @@ (define-public rust-fs-set-times-0.19
               (sha256
                (base32
                 "0qc822hifnwvrfd706wnx5xhajqfsc4kn2lmalfda4x02pqx0cvq"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-io-lifetimes" ,rust-io-lifetimes-1)
         ("rust-rustix" ,rust-rustix-0.37)
-        ("rust-windows-sys" ,rust-windows-sys-0.48))))
-    (home-page "https://github.com/bytecodealliance/fs-set-times")
-    (synopsis "Set filesystem timestamps")
-    (description "Set filesystem timestamps")
-    (license (list license:asl2.0 license:expat))))
+        ("rust-windows-sys" ,rust-windows-sys-0.48))))))
 
 (define-public rust-fs-utils-1
   (package
-- 
2.41.0