Subject: [PATCH 07/43] gnu: Add rust-termbg-0.5.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:50:38 +0000

* gnu/packages/crates-io.scm (rust-termbg-0.5): New variable.

Change-Id: Ib0683af91da00335aef95e4b0ae91a8470207ecf
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 55870fb750..aa090607b8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -69461,6 +69461,30 @@ (define-public rust-term-0.2
        (("rust-kernel32-sys" ,rust-kernel32-sys-0.2)
         ("rust-winapi" ,rust-winapi-0.2))))))
 
+(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-term-size-1
   (package
     (name "rust-term-size")
-- 
2.41.0