Subject: [PATCH v2 13/13] gnu: rbw: Update to 1.9.0.

From: VÖRÖSKŐI András <[email-masked]>
Date: Tue, 30 Jan 2024 20:25:16 +0100

* gnu/packages/rust-apps.scm (rbw): Update to 1.9.0.

Change-Id: Ia3675326ad5a82a6668e10ea19a86cf3cb2f8199
---
 gnu/packages/rust-apps.scm | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 2d714c4861..aeae88fa21 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2055,7 +2055,7 @@ (define-public watchexec
 (define-public rbw
   (package
     (name "rbw")
-    (version "1.8.3")
+    (version "1.9.0")
     (outputs '("out" "scripts"))
     (source
      (origin
@@ -2063,12 +2063,15 @@ (define-public rbw
        (uri (crate-uri "rbw" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1p8bzpqgdc20l2vbb80gsb2ri5j16af958bixpnnp73mfvwzxvg1"))
+        (base32 "0rlp55kcac9k0rz1zfhyslkfgsim1ka6bkllfzqrayvdfyxqq51i"))
        (modules '((guix build utils)))
        (snippet
-        '(begin (substitute* "Cargo.toml"
-                  (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
-                   (string-append "\"^" version)))))))
+        '(begin
+           (substitute* "Cargo.toml"
+             ;; Change version requirement for rust-tungstenite
+             (("0.20") "0.21")
+             ;; Change version requirement for directories
+             (("=5.0.0") "^5.0.0"))))))
     (build-system cargo-build-system)
     (arguments
      `(#:install-source? #f
@@ -2084,7 +2087,7 @@ (define-public rbw
         ("rust-cbc" ,rust-cbc-0.1)
         ("rust-clap" ,rust-clap-4)
         ("rust-clap-complete" ,rust-clap-complete-4)
-        ("rust-copypasta" ,rust-copypasta-0.8)
+        ("rust-copypasta" ,rust-copypasta-0.10)
         ("rust-daemonize" ,rust-daemonize-0.5)
         ("rust-directories" ,rust-directories-5)
         ("rust-env-logger" ,rust-env-logger-0.10)
@@ -2117,7 +2120,7 @@ (define-public rbw
         ("rust-thiserror" ,rust-thiserror-1)
         ("rust-tokio" ,rust-tokio-1)
         ("rust-tokio-stream" ,rust-tokio-stream-0.1)
-        ("rust-tokio-tungstenite" ,rust-tokio-tungstenite-0.19)
+        ("rust-tokio-tungstenite" ,rust-tokio-tungstenite-0.21)
         ("rust-totp-lite" ,rust-totp-lite-2)
         ("rust-url" ,rust-url-2)
         ("rust-uuid" ,rust-uuid-1)
-- 
2.41.0