Subject: [bug#68312] [PATCH 155/156] gnu: Add rust-yansi-1.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:54:12 +0100

* gnu/packages/crates-io.scm (rust-yansi-1): New variable.
(rust-yansi-0.5): Inherit from rust-yansi-1.

Change-Id: I3b5dbcf41e7862d608f432751a839c359a333fbe
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a95fd596d3..525d1108edd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -86835,20 +86835,21 @@ (define-public rust-yaml-rust-0.3
        (("rust-clippy" ,rust-clippy-0.0)
         ("rust-linked-hash-map" ,rust-linked-hash-map-0.3))))))
 
-(define-public rust-yansi-0.5
+(define-public rust-yansi-1
   (package
     (name "rust-yansi")
-    (version "0.5.1")
+    (version "1.0.0-rc.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "yansi" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1v4qljgzh73knr7291cgwrf56zrvhmpn837n5n5pypzq1kciq109"))))
+        (base32 "0xr3n41j5v00scfkac2d6vhkxiq9nz3l5j6vw8f3g3bqixdjjrqk"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-development-inputs (("rust-serial-test" ,rust-serial-test-0.6))))
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-is-terminal" ,rust-is-terminal-0.4))))
     (home-page "https://github.com/SergioBenitez/yansi")
     (synopsis "Simple ANSI terminal color painting library")
     (description
@@ -86856,6 +86857,21 @@ (define-public rust-yansi-0.5
 library.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-yansi-0.5
+  (package
+    (inherit rust-yansi-1)
+    (name "rust-yansi")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "yansi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1v4qljgzh73knr7291cgwrf56zrvhmpn837n5n5pypzq1kciq109"))))
+    (arguments
+     `(#:cargo-development-inputs (("rust-serial-test" ,rust-serial-test-0.6))))))
+
 (define-public rust-yansi-term-0.1
   (package
     (name "rust-yansi-term")
-- 
2.41.0