Subject: [bug#66839] [PATCH 09/19] gnu: Add rust-ansi-parser-0.8.

From: Steve George <[email-masked]>
Date: Mon, 30 Oct 2023 21:06:15 +0000

* gnu/packages/crates-io.scm (rust-ansi-parser-0.8): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e344975d6f..0cdd69fbd7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3425,8 +3425,30 @@ (define-public rust-anes-0.1
     ;; The user can choose either license.
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ansi-parser-0.8
+  (package
+    (version "0.8.0")
+    (name "rust-ansi-parser")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ansi-parser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09vi51kdnbwj6c4vdiiydpqxiiwyppn7kbynf22ij9xzg4h3kcmw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-heapless" ,rust-heapless-0.5)
+                       ("rust-nom" ,rust-nom-4))))
+    (home-page "https://gitlab.com/DavidBittner/ansi-parser")
+    (synopsis "Library using nom for parsing ANSI escape codes")
+    (description "This package provides a library using nom for parsing ANSI
+escape codes.")
+    (license license:mpl2.0)))
+
 (define-public rust-ansi-parser-0.6
   (package
+    (inherit rust-ansi-parser-0.8)
     (name "rust-ansi-parser")
     (version "0.6.5")
     (source
@@ -3437,17 +3459,10 @@ (define-public rust-ansi-parser-0.6
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "152idb8a6gwdxzj6m099h3xgx8vw0sjc6skgw94nm2k3y5swc6kn"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-heapless" ,rust-heapless-0.5)
-        ("rust-nom" ,rust-nom-4))))
-    (home-page "https://gitlab.com/DavidBittner/ansi-parser")
-    (synopsis "Library using nom for parsing ANSI escape codes")
-    (description
-     "This package provides a library using nom for parsing ANSI
-escape codes.")
-    (license license:mpl2.0)))
+        ("rust-nom" ,rust-nom-4))))))
 
 (define-public rust-anstream-0.3
   (package
-- 
2.41.0