diff mbox series

[bug#69890,07/43] gnu: Add rust-termbg-0.5.

Message ID d203641cf936d63e042f60ca21eedc0524bfdcd8.1710817680.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:50 a.m. UTC
* 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 mbox series

Patch

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