From 7170013e98edac1df4d1f0c364db24773cc9aece Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Mon, 30 Oct 2023 22:52:40 -0400 Subject: [PATCH] gnu: Add rust-color-to-tui-0.2. * gnu/packages/crates-graphics.scm (rust-color-to-tui-0.2): New variable. Change-Id: I52acf3bfebef4b9512b555e02e5a78a845cf9ee0 Signed-off-by: Efraim Flashner --- gnu/packages/crates-graphics.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 15b54b7f95..fb2b5cf227 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -497,6 +497,30 @@ (define-public rust-cgmath-0.16 (;("rust-glium" ,rust-glium-0.19) ("rust-serde-json" ,rust-serde-json-1)))))) +(define-public rust-color-to-tui-0.2 + (package + (name "rust-color-to-tui") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "color-to-tui" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1k3vyp2fl0lcqs8iwssv56562kag6ljqaixirrci77ydmcq3zi0s")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-serde" ,rust-serde-1) + ("rust-tui" ,rust-tui-0.16)) + #:cargo-development-inputs (("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://git.uttarayan.me/uttarayan/color-to-tui") + (synopsis + "Parse colors and convert them to @code{ratatui::style::Colors}") + (description + "This package provides parsing colors and converting them to +@code{ratatui::style::Colors}.") + (license license:expat))) + (define-public rust-core-graphics-0.22 (package (name "rust-core-graphics")