From f4240f71e05487df80b960d41d8b51c2d248fcf3 Mon Sep 17 00:00:00 2001 From: Suhail Singh Date: Sun, 4 Aug 2024 12:39:25 -0400 Subject: [PATCH] gnu: Add rust-chic-1. * gnu/packages/crates-io.scm (rust-chic-1): New variable. (rust-annotate-snippets-0.6): New variable. Change-Id: Ibf939b8a15a9135a66bf41e3a39ed1c25c32dbaf Signed-off-by: Nicolas Goaziou --- 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 15a16a6310..53d6920c3a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1727,6 +1727,26 @@ (define-public rust-annotate-snippets-0.9 ("rust-toml" ,rust-toml-0.5) ("rust-yansi-term" ,rust-yansi-term-0.1)))))) +(define-public rust-annotate-snippets-0.6 + (package + (inherit rust-annotate-snippets-0.10) + (name "rust-annotate-snippets") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "annotate-snippets" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "19x7ldklprdgf8pam8b3lfhrxqw5yldcvk5j0bw2agsajbj1q0n7")))) + (arguments + `(#:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.11)) + #:cargo-development-inputs (("rust-ansi-term" ,rust-ansi-term-0.12) + ("rust-difference" ,rust-difference-2) + ("rust-glob" ,rust-glob-0.3) + ("rust-serde" ,rust-serde-1) + ("rust-serde-yaml" ,rust-serde-yaml-0.8)))))) + (define-public rust-ansi-parser-0.8 (package (name "rust-ansi-parser") @@ -12259,6 +12279,25 @@ (define-public rust-chrono-0.4 (description "Date and time library for Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-chic-1 + (package + (name "rust-chic") + (version "1.2.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "chic" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "037pkdccj25gr4my8fq1qni9v87rydpyhfi2naf86mimkxhxpdd5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-annotate-snippets" ,rust-annotate-snippets-0.6)))) + (home-page "https://github.com/yoshuawuyts/chic") + (synopsis "Pretty parser error reporting") + (description "This package provides pretty parser error reporting.") + (license (list license:expat license:asl2.0)))) + (define-public rust-chrono-humanize-0.2 (package (name "rust-chrono-humanize")