Subject: [bug#74551] [PATCH rust-team v3 45/73] gnu: rust-color-backtrace: Add v0.6.1

From: Aaron Covrig <[email-masked]>
Date: Mon, 2 Dec 2024 22:00:25 -0500

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-color-backtrace-0.6): New variable
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++++-----
 1 file changed, 30 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9ac0b383f..ec903036f6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14799,21 +14799,20 @@ (define-public rust-coitrees-0.2
 sets of intervals.")
     (license license:expat)))
 
-(define-public rust-color-backtrace-0.5
+(define-public rust-color-backtrace-0.6
   (package
     (name "rust-color-backtrace")
-    (version "0.5.1")
+    (version "0.6.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "color-backtrace" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "11fn3snykx90w3nznzrcf4r164zmhk790asx0kzryf4r7i308v6d"))))
+        (base32 "183y2b0b4q14zq1nr2mc9sxld9xnvq28531qkwvp21hc4w5dh3qm"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-atty" ,rust-atty-0.2)
-                       ("rust-backtrace" ,rust-backtrace-0.3)
+     `(#:cargo-inputs (("rust-backtrace" ,rust-backtrace-0.3)
                        ("rust-regex" ,rust-regex-1)
                        ("rust-termcolor" ,rust-termcolor-1))))
     (home-page "https://github.com/athre0z/color-backtrace")
@@ -14821,6 +14820,32 @@ (define-public rust-color-backtrace-0.5
     (description "This package provides colorful panic backtraces.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-color-backtrace-0.5
+  (package
+    (inherit rust-color-backtrace-0.6)
+    (name "rust-color-backtrace")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "color-backtrace" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11fn3snykx90w3nznzrcf4r164zmhk790asx0kzryf4r7i308v6d"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 ;; https://github.com/eyre-rs/eyre/pull/175
+                 ;; gimli-symbolize was deprecated in backtrace in ~2022
+                 ;; and was folded into backtrace's std feature set.
+                 (substitute* "Cargo.toml"
+                   ((".*gimli-symbolize.*") ""))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-atty" ,rust-atty-0.2)
+                       ("rust-backtrace" ,rust-backtrace-0.3)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-termcolor" ,rust-termcolor-1))))))
+
 (define-public rust-color-eyre-0.6
   (package
     (name "rust-color-eyre")
-- 
2.47.0