summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-28 09:41:49 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:58:54 +0200
commit21a8b4401e445f00f96cbc1967bb8ec58feda9c0 (patch)
tree441d0baf50b5ead596d6562c1acbdca33eb6007b
parent060b37b8b9640cf6b38a3ace8f6e3817a52f6a18 (diff)
downloadguix-21a8b4401e445f00f96cbc1967bb8ec58feda9c0.tar.gz
gnu: Add rust-ansi-parser-0.8.
* gnu/packages/crates-io.scm (rust-ansi-parser-0.8): New variable.
(rust-ansi-parser-0.6): Inherit from rust-ansi-parser-0.8.

Change-Id: Ia101b2b0040c1f68364752d2287488a612a04bd7
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 24 insertions, 10 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c74ebb1104..3d1f226b0d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3494,29 +3494,43 @@ it outputs messages to Android's logcat.")
     ;; The user can choose either license.
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ansi-parser-0.8
+  (package
+    (name "rust-ansi-parser")
+    (version "0.8.0")
+    (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
      (origin
        (method url-fetch)
        (uri (crate-uri "ansi-parser" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
+       (file-name (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.6
   (package