Subject: [PATCH 54/91] gnu: Add rust-termimad-0.23.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:32 +0100

* gnu/packages/crates-io.scm (rust-termimad-0.23): New variable.

Change-Id: I39370011db1df264a7deb3aa53a030074b211491
---
 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b2ac3b8784..b904bf0453 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -73454,8 +73454,37 @@ (define-public rust-termcolor-0.3
        #:cargo-inputs
        (("rust-wincolor" ,rust-wincolor-0.1))))))
 
+(define-public rust-termimad-0.23
+  (package
+    (name "rust-termimad")
+    (version "0.23.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "termimad" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00i29vky1fard6vm5hdbmyc6iv63igp8v59iwjkwslpwk4qqhcif"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-coolor" ,rust-coolor-0.5.0)
+                       ("rust-crossbeam" ,rust-crossbeam-0.8)
+                       ("rust-crossterm" ,rust-crossterm-0.23)
+                       ("rust-crokey" ,rust-crokey-0.4)
+                       ("rust-minimad" ,rust-minimad-0.12)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-terminal-clipboard" ,rust-terminal-clipboard-0.3)
+                       ("rust-cli-log" ,rust-cli-log-2)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1))))
+    (inputs (list libxcb))
+    (home-page "https://github.com/Canop/termimad")
+    (synopsis "Markdown Renderer for the Terminal")
+    (description "Markdown Renderer for the Terminal.")
+    (license license:expat)))
+
 (define-public rust-termimad-0.20
   (package
+    (inherit rust-termimad-0.23)
     (name "rust-termimad")
     (version "0.20.6")
     (source (origin
@@ -73470,7 +73499,6 @@ (define-public rust-termimad-0.20
                '(begin (substitute* "Cargo.toml"
                          (("=([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)" _ version)
                           (string-append "^" version)))))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t     ; Cut the dependency graph
        #:cargo-inputs
@@ -73479,11 +73507,7 @@ (define-public rust-termimad-0.20
         ("rust-crossterm" ,rust-crossterm-0.23)
         ("rust-minimad" ,rust-minimad-0.9)
         ("rust-thiserror" ,rust-thiserror-1)
-        ("rust-unicode-width" ,rust-unicode-width-0.1))))
-    (home-page "https://github.com/Canop/termimad")
-    (synopsis "Markdown Renderer for the Terminal")
-    (description "Markdown Renderer for the Terminal.")
-    (license license:expat)))
+        ("rust-unicode-width" ,rust-unicode-width-0.1))))))
 
 (define-public rust-terminal-clipboard-0.3
   (package
-- 
2.41.0