From 70dc1fcc6aeced6cbcb5d21bd690123a169b0a99 Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Wed, 20 Dec 2023 12:05:52 +0200 Subject: [PATCH] gnu: Add rust-tui-0.19. * gnu/packages/crates-io.scm (rust-tui-0.19): New variable. (rust-0.16): Inherit from rust-tui-0.19. Change-Id: Ibd6d500fb52d18287a27f9f7d84cf005fbc1ec76 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5c0381b558..366010f8cb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -84080,8 +84080,41 @@ (define-public rust-ttf-parser-0.6 (base32 "1p4z969pwd5adayy3ijq94iiak42yfxz8hk5wnkdsirymgbpqp9y")))) (arguments `(#:skip-build? #t)))) +(define-public rust-tui-0.19 + (package + (name "rust-tui") + (version "0.19.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tui" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ldswnqgmdkd2fkislyh1amd6rmnbx3s8b97k9j7w03lsv5jdpfc")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags `("--" + "--skip=buffer::tests::index_of_panics_on_out_of_bounds" + "--skip=buffer::tests::pos_of_panics_on_out_of_bounds") + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) + ("rust-cassowary" ,rust-cassowary-0.3) + ("rust-crossterm" ,rust-crossterm-0.25) + ("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.19) (name "rust-tui") (version "0.16.0") (source @@ -84091,7 +84124,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 @@ -84107,13 +84139,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