From a5ea2f9854bb4d8fb95430de769bb3c27baa667d Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Mon, 30 Oct 2023 22:52:41 -0400 Subject: [PATCH] gnu: Add rust-ansi-to-tui-2. * gnu/packages/crates-graphics.scm (rust-ansi-to-tui-2): New variable. Change-Id: I3eb91a0ce8c66a911eaab5946e6b085ac0de8b96 Signed-off-by: Efraim Flashner --- gnu/packages/crates-graphics.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index fb2b5cf227..a75d15ae34 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -199,6 +199,32 @@ (define-public rust-ansi-term-0.9 "1xif1bh938qpfc3d0f9xgidibpm65xix11w9gszwqnia00q7rb13")))) (arguments `()))) +(define-public rust-ansi-to-tui-2 + (package + (name "rust-ansi-to-tui") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "ansi-to-tui" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0l43nyj2difngwjbiy6vd5p8bw96w06swgw5hx6vi9zvqzs8wyqm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-nom" ,rust-nom-7) + ("rust-simdutf8" ,rust-simdutf8-0.1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-tui" ,rust-tui-0.16)) + #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1)))) + (home-page "https://github.com/uttarayan21/ansi-to-tui") + (synopsis + "Library to convert ansi color coded text into @code{ratatui::text::Text}") + (description + "This package provides a library to convert ansi color coded text into +@code{ratatui::text::Text} type from the ratatui library.") + (license license:expat))) + (define-public rust-ansiterm-0.12 (package (name "rust-ansiterm")