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 <mail@nicolasgoaziou.fr>
This commit is contained in:
Suhail Singh 2024-08-04 12:39:25 -04:00 committed by Nicolas Goaziou
parent d5312370b4
commit f4240f71e0
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -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")