From 86772aba79842e6732c2d588943251b56b193039 Mon Sep 17 00:00:00 2001 From: normalmente Date: Tue, 19 Mar 2024 03:50:38 +0000 Subject: [PATCH] gnu: Add rust-termbg-0.5. * gnu/packages/crates-io.scm (rust-termbg-0.5): New variable. Change-Id: Ib0683af91da00335aef95e4b0ae91a8470207ecf Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 518801bfa5..ed350fe64c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -76425,6 +76425,29 @@ template language.") (("rust-libc" ,rust-libc-0.2) ("rust-winapi" ,rust-winapi-0.3)))))) +(define-public rust-termbg-0.5 + (package + (name "rust-termbg") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "termbg" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1pidjkz38z13iz8xchrz1nidxny5zjmxvbl1fs4arilvpzhfc4ic")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-async-std" ,rust-async-std-1) + ("rust-crossterm" ,rust-crossterm-0.27) + ("rust-is-terminal" ,rust-is-terminal-0.4) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-winapi" ,rust-winapi-0.3)))) + (home-page "https://github.com/dalance/termbg") + (synopsis "Terminal background color detection") + (description "This package provides terminal background color detection.") + (license (list license:expat license:asl2.0)))) + (define-public rust-termbox-sys-0.2 (package (name "rust-termbox-sys")