Subject: [PATCH 7/9] Update rust-which

From: Julian Flake <[email-masked]>
Date: Sun, 19 May 2024 13:54:40 +0200

Change-Id: Ib1e9a41dfc121edde6ed980eae3bc44dda090e8b
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 50684530a2..3a07c11996 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77999,17 +77999,17 @@ (define-public rust-wepoll-sys-stjepang-1
 using @code{bindgen}.")
     (license license:mpl2.0)))
 
-(define-public rust-which-5
+(define-public rust-which-6
   (package
     (name "rust-which")
-    (version "5.0.0")
+    (version "6.0.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "which" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "053fpbczryyn8lcbpkvwl8v2rzld0pr30r5lh1cxv87kjs2ymwwv"))
+        (base32 "1mz0vijj9qvsmfqkjqw3wf8zqn19p2x0gg7gzfnhaa1bibsy84c2"))
        (modules '((guix build utils)))
        (snippet
         '(begin (substitute* "Cargo.toml"
@@ -78026,7 +78026,8 @@ (define-public rust-which-5
                        ("rust-once-cell" ,rust-once-cell-1)
                        ("rust-regex" ,rust-regex-1)
                        ("rust-rustix" ,rust-rustix-0.38)
-                       ("rust-windows-sys" ,rust-windows-sys-0.48))
+                       ("rust-windows-sys" ,rust-windows-sys-0.48) ; not needed in 6 anymore
+                       ("rust-winsafe" ,rust-winsafe-0.0.19))
        #:cargo-development-inputs (("rust-tempfile" ,rust-tempfile-3))))
     (home-page "https://github.com/harryfei/which-rs.git")
     (synopsis "Rust equivalent of @command{which}")
@@ -78036,6 +78037,20 @@ (define-public rust-which-5
 executable.")
     (license license:expat)))
 
+
+(define-public rust-which-5
+  (package
+    (inherit rust-which-6)
+    (name "rust-which")
+    (version "5.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "which" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "053fpbczryyn8lcbpkvwl8v2rzld0pr30r5lh1cxv87kjs2ymwwv"))))))
+
 (define-public rust-which-4
   (package
     (inherit rust-which-5)
-- 
2.41.0