guix-commits
[Top][All Lists]
Advanced

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

242/311: gnu: Add rust-ansi-parser-0.8.


From: guix-commits
Subject: 242/311: gnu: Add rust-ansi-parser-0.8.
Date: Sat, 28 Oct 2023 16:39:27 -0400 (EDT)

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

commit bb2f878a6a22c7a4a39b13d0f69330719cabd906
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Oct 28 09:41:49 2023 +0300

    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
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 234c5884c5..f9cb9013f4 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



reply via email to

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