Subject: [bug#66805] [PATCH 20/22] gnu: Add rust-ansiterm-0.12.

From: Jaeme Sifat <[email-masked]>
Date: Sun, 29 Oct 2023 00:27:12 -0400

* gnu/packages/crates-graphics.scm (rust-ansiterm-0.12): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: I9f98081b498c4781258d1be3ed44875127a5075c
---
 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 22b77121e9..4bd1f5b387 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -136,6 +136,32 @@ (define-public rust-ansi-colours-1
 approximated by values supported by the terminal.")
     (license license:lgpl3+)))
 
+(define-public rust-ansiterm-0.12
+  (package
+    (name "rust-ansiterm")
+    (version "0.12.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ansiterm" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1k14pywvgd829swxzji0nchk4n6yvr9xz6lkwv96v8ax77sqgdaa"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-ansi-colours" ,rust-ansi-colours-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs (("rust-doc-comment" ,rust-doc-comment-0.3)
+                                   ("rust-regex" ,rust-regex-1)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/rustadopt/ansiterm-rs")
+    (synopsis "Library for ANSI terminal colours and styles (bold, underline)")
+    (description
+     "This package provides a library for ANSI terminal colours and
+styles (bold, underline).")
+    (license license:expat)))
+
 (define-public rust-ansi-term-0.12
   (package
     (name "rust-ansi-term")
-- 
2.34.1