guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

223/330: gnu: Add rust-ansi-width-0.1.


From: guix-commits
Subject: 223/330: gnu: Add rust-ansi-width-0.1.
Date: Mon, 18 Mar 2024 07:16:19 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 64d9adb184538adca1b615fb9bd61f1d793a3e45
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Mar 17 14:30:00 2024 +0200

    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 0053a90ff5..d1c0b46a50 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1675,6 +1675,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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]