From 21a8b4401e445f00f96cbc1967bb8ec58feda9c0 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 28 Oct 2023 09:41:49 +0300 Subject: 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 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 -- cgit 1.4.1