Subject: [bug#77517] [PATCH 5/6] gnu: rust-dirs-sys: Add version 0.5.

From: Daniel Ziltener <[email-masked]>
Date: Fri, 4 Apr 2025 03:13:35 +0200

---
 gnu/packages/crates-io.scm | 46 ++++++++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3360a7c0a1..675bd9ce59 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21254,24 +21254,23 @@ (define-public rust-dirs-next-1
     (home-page "https://github.com/xdg-rs/dirs")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-dirs-sys-0.4
+(define-public rust-dirs-sys-0.5
   (package
     (name "rust-dirs-sys")
-    (version "0.4.1")
-    (source (origin
-              (method url-fetch)
-              (uri (crate-uri "dirs-sys" version))
-              (file-name (string-append name "-" version ".tar.gz"))
-              (sha256
-               (base32
-                "071jy0pvaad9lsa6mzawxrh7cmr7hsmsdxwzm7jzldfkrfjha3sj"))))
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dirs-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1aqzpgq6ampza6v012gm2dppx9k35cdycbj54808ksbys9k366p0"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-libc" ,rust-libc-0.2)
-        ("rust-option-ext" ,rust-option-ext-0.2)
-        ("rust-redox-users" ,rust-redox-users-0.4)
-        ("rust-windows-sys" ,rust-windows-sys-0.48))))
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-option-ext" ,rust-option-ext-0.2)
+                       ("rust-redox-users" ,rust-redox-users-0.5)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))))
     (home-page "https://github.com/dirs-dev/dirs-sys-rs")
     (synopsis
      "System-level helper functions for the dirs and directories crates")
@@ -21280,6 +21279,25 @@ (define-public rust-dirs-sys-0.4
 and @code{directories} crates.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-dirs-sys-0.4
+  (package
+    (inherit rust-dirs-sys-0.5)
+    (name "rust-dirs-sys")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dirs-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "071jy0pvaad9lsa6mzawxrh7cmr7hsmsdxwzm7jzldfkrfjha3sj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-option-ext" ,rust-option-ext-0.2)
+                       ("rust-redox-users" ,rust-redox-users-0.4)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))))))
+
 (define-public rust-dirs-sys-0.3
   (package
     (inherit rust-dirs-sys-0.4)
-- 
2.49.0