From 6a3d61acbf203bb3483d1ed9b18dc8268dea1425 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 17 Mar 2024 14:30:00 +0200 Subject: [PATCH] gnu: Add rust-ansi-width-0.1. * gnu/packages/crates-io.scm (rust-ansi-width-0.1): New variable. Change-Id: I28ecb595a29c5b6607ce94dcfda904f1c014271d --- gnu/packages/crates-io.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bb4529f351..5284e796fd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1696,6 +1696,26 @@ it outputs messages to Android's logcat.") (("rust-heapless" ,rust-heapless-0.5) ("rust-nom" ,rust-nom-4)))))) +(define-public rust-ansi-width-0.1 + (package + (name "rust-ansi-width") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ansi-width" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "023693dwvci91456nfi0aygc44i1f098l2f23ssq67b1ybk3r7i1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width-0.1)))) + (home-page "https://docs.rs/ansi-width") + (synopsis "Calculate the width of a string when printed to the terminal") + (description + "Calculate the width of a string when printed to the terminal.") + (license license:expat))) + (define-public rust-anstream-0.6 (package (name "rust-anstream")