Subject: [PATCH 104/156] gnu: Add rust-ratatui-0.24.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:53:21 +0100

* gnu/packages/crates-io.scm (rust-ratatui-0.24): New variable.
(rust-ratatui-0.20): Inherit from rust-ratatui-0.24.

Change-Id: I7cafad4938cf68a404d37206e0abf639d2224fa5
---
 gnu/packages/crates-io.scm | 46 +++++++++++++++++++++++++++++++-------
 1 file changed, 38 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 87018b35fc8..99d42c02211 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57786,8 +57786,45 @@ (define-public rust-randomize-4
     (license
      (list license:zlib license:asl2.0 license:expat))))
 
+(define-public rust-ratatui-0.24
+  (package
+    (name "rust-ratatui")
+    (version "0.24.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ratatui" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "099433has5bhl6zbckpv2qskb66h7xz4rfgc6xn5cyjjzdy93g0f"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-cassowary" ,rust-cassowary-0.3)
+                       ("rust-crossterm" ,rust-crossterm-0.27)
+                       ("rust-document-features" ,rust-document-features-0.2)
+                       ("rust-indoc" ,rust-indoc-2)
+                       ("rust-itertools" ,rust-itertools-0.11)
+                       ("rust-lru" ,rust-lru-0.12)
+                       ("rust-paste" ,rust-paste-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-strum" ,rust-strum-0.25)
+                       ("rust-termion" ,rust-termion-2)
+                       ("rust-termwiz" ,rust-termwiz-0.20)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1))))
+    (home-page "https://github.com/ratatui-org/ratatui")
+    (synopsis "Library for cooking up terminal user interfaces")
+    (description
+     "This package provides a library that's all about cooking up terminal user
+interfaces.")
+    (license license:expat)))
+
 (define-public rust-ratatui-0.20
   (package
+    (inherit rust-ratatui-0.24)
     (name "rust-ratatui")
     (version "0.20.1")
     (source
@@ -57797,7 +57834,6 @@ (define-public rust-ratatui-0.20
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0ab8w62dkp2c2l8s1xb904imqlv7aqkc07hm6bp01afbphrd1h6w"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -57815,13 +57851,7 @@ (define-public rust-ratatui-0.20
         ("rust-unicode-width" ,rust-unicode-width-0.1))
        #:cargo-development-inputs
        (("rust-argh" ,rust-argh-0.1)
-        ("rust-rand" ,rust-rand-0.8))))
-    (home-page "https://github.com/ratatui-org/ratatui")
-    (synopsis "Library for cooking up terminal user interfaces")
-    (description
-     "This package provides a library that's all about cooking up terminal user
-interfaces.")
-    (license license:expat)))
+        ("rust-rand" ,rust-rand-0.8))))))
 
 (define-public rust-raw-cpuid-10
   (package
-- 
2.41.0