From 086e5aa2dad60300902ab2d132f29d07cc118e2f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 3 Jan 2025 12:03:00 +0200 Subject: [PATCH] gnu: Add rust-color-eyre-0.5. * gnu/packages/crates-io.scm (rust-color-eyre-0.5): New variable. Change-Id: Ic9d2330f6d7fe0b86c1faa88729676b57120efed --- gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 873b52ed74..58224b0cf3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -13665,6 +13665,45 @@ (define-public rust-color-eyre-0.6 and well formatted error reports for all kinds of errors.") (license (list license:expat license:asl2.0)))) +(define-public rust-color-eyre-0.5 + (package + (inherit rust-color-eyre-0.6) + (name "rust-color-eyre") + (version "0.5.11") + (source + (origin + (method url-fetch) + (uri (crate-uri "color-eyre" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dspj58bk57f9hiqlvbz25rik92i4a95iwa2dl4pg8g8grlqa60z")) + (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.*") "")))))) + (arguments + `(#:cargo-test-flags '("--" + "--skip=test_error_backwards_compatibility" + "--skip=test_panic_backwards_compatibility") + #:cargo-inputs (("rust-backtrace" ,rust-backtrace-0.3) + ("rust-color-spantrace" ,rust-color-spantrace-0.1) + ("rust-eyre" ,rust-eyre-0.6) + ("rust-indenter" ,rust-indenter-0.3) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-owo-colors" ,rust-owo-colors-1) + ("rust-tracing-error" ,rust-tracing-error-0.1) + ("rust-url" ,rust-url-2)) + #:cargo-development-inputs + (("rust-ansi-parser" ,rust-ansi-parser-0.6) + ("rust-pretty-assertions" ,rust-pretty-assertions-0.6) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-tracing" ,rust-tracing-0.1) + ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.2) + ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)))))) + (define-public rust-color-print-0.3 (package (name "rust-color-print")