Subject: [bug#56057] [bug #56057] [PATCH v2 19/21] gnu: Add rust-tui-0.17.

From: antlers <[email-masked]>
Date: Sun, 19 Jun 2022 10:27:09 -0700

* gnu/packages/crates-io.scm (rust-tui-0.17): New variable.
(rust-tui-0.16): Inherit from rust-tui-0.17.
---
:100644 100644 a333f6c6ce 0410e42dfd M	gnu/packages/crates-io.scm
 gnu/packages/crates-io.scm | 45 ++++++++++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a333f6c6ce..0410e42dfd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14986,7 +14986,7 @@ (define-public rust-crosstermion-0.9
         ("rust-futures-core" ,rust-futures-core-0.3)
         ("rust-futures-lite" ,rust-futures-lite-1)
         ("rust-termion" ,rust-termion-1)
-        ("rust-tui" ,rust-tui-0.18)
+        ("rust-tui" ,rust-tui-0.17)
         ("rust-tui-react" ,rust-tui-react-0.17))))
     (home-page "https://github.com/Byron/tui-crates")
     (synopsis
@@ -67556,8 +67556,42 @@ (define-public rust-ttf-parser-0.6
         (base32 "1p4z969pwd5adayy3ijq94iiak42yfxz8hk5wnkdsirymgbpqp9y"))))
     (arguments `(#:skip-build? #t))))
 
+(define-public rust-tui-0.17
+  (package
+    (name "rust-tui")
+    (version "0.17.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "tui" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0w92l3ilsz4lzmsp6illpsvabgsl0nysridny5rrn0wbr0r0mv93"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-cassowary" ,rust-cassowary-0.3)
+        ("rust-crossterm" ,rust-crossterm-0.22)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-termion" ,rust-termion-1)
+        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+        ("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/fdehau/tui-rs")
+    (synopsis "Library to build rich terminal user interfaces or dashboards")
+    (description
+     "This package provides a library to build rich terminal user interfaces
+or dashboards.")
+    (license license:expat)))
+
 (define-public rust-tui-0.16
   (package
+    (inherit rust-tui-0.17)
     (name "rust-tui")
     (version "0.16.0")
     (source
@@ -67567,7 +67601,6 @@ (define-public rust-tui-0.16
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "08qcdjmi8sn2xyh38ilr17i9bn89ic2aaqx3rybyv7h44x7cxj1r"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -67583,13 +67616,7 @@ (define-public rust-tui-0.16
         ("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/fdehau/tui-rs")
-    (synopsis "Library to build rich terminal user interfaces or dashboards")
-    (description
-     "This package provides a library to build rich terminal user interfaces
-or dashboards.")
-    (license license:expat)))
+        ("rust-rand" ,rust-rand-0.8))))))
 
 (define-public rust-tui-0.15
   (package
-- 
2.36.0