From d8c0d955a439478b21b8891638de09483fe8ff1e Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 9 Nov 2021 19:38:32 +0100 Subject: [PATCH] gnu: Add rust-tui-0.16. * gnu/packages/crates-io.scm (rust-tui-0.16): New variable. (rust-tui-0.15): Inherit from above. Signed-off-by: Nicolas Goaziou --- gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ec2e70b118..534a8ee151 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -58231,8 +58231,44 @@ the Trust-DNS client to use rustls for TLS.") parser.") (license (list license:expat license:asl2.0)))) +(define-public rust-tui-0.16 + (package + (name "rust-tui") + (version "0.16.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tui" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "08qcdjmi8sn2xyh38ilr17i9bn89ic2aaqx3rybyv7h44x7cxj1r")))) + (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.20) + ("rust-easycurses" ,rust-easycurses-0.12) + ("rust-pancurses" ,rust-pancurses-0.16) + ("rust-rustbox" ,rust-rustbox-0.11) + ("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.15 (package + (inherit rust-tui-0.16) (name "rust-tui") (version "0.15.0") (source @@ -58242,7 +58278,6 @@ parser.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0w9azg9zj1nnwcwbra9pxrwy47ab0m2bhanbkchydv8lscx8y7c6")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -58255,13 +58290,7 @@ parser.") ("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)))) - (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-unicode-width" ,rust-unicode-width-0.1)))))) (define-public rust-tui-0.14 (package