Subject: [PATCH 18/24] gnu: Add rust-grep-printer-0.2.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 17 Jan 2024 19:22:26 +0100

* gnu/packages/crates-io.scm (rust-grep-printer-0.2): New variable.
(rust-grep-printer-0.1): Inherit from above.

Change-Id: If3e92ad81f972da57846c36da28004009ad7ae39
---
 gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++------
 1 file changed, 32 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bb8589a8df..e7f85e7e13 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33772,10 +33772,10 @@ (define-public rust-grep-pcre2-0.1
     (description "Use PCRE2 with the grep crate.")
     (license (list license:expat license:unlicense))))
 
-(define-public rust-grep-printer-0.1
+(define-public rust-grep-printer-0.2
   (package
     (name "rust-grep-printer")
-    (version "0.1.6")
+    (version "0.2.1")
     (source
      (origin
        (method url-fetch)
@@ -33784,16 +33784,15 @@ (define-public rust-grep-printer-0.1
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "0wnw8khcvris8canv1dp58qh6vph18fml9qsnrsmdpxf9ni73hh5"))))
+         "1cnf70gjnybfql0lmpr32dslb4xhxgc6h0dxwnv3ivla7jh14g3l"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-base64" ,rust-base64-0.13)
-        ("rust-bstr" ,rust-bstr-0.2)
+       (("rust-bstr" ,rust-bstr-1)
         ("rust-grep-matcher" ,rust-grep-matcher-0.1)
         ("rust-grep-searcher" ,rust-grep-searcher-0.1)
+        ("rust-log" ,rust-log-0.4)
         ("rust-serde" ,rust-serde-1)
-        ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-termcolor" ,rust-termcolor-1))
        #:cargo-development-inputs
@@ -33805,6 +33804,33 @@ (define-public rust-grep-printer-0.1
 provides standard printing of search results, similar to grep itself.")
     (license (list license:unlicense license:expat))))
 
+(define-public rust-grep-printer-0.1
+  (package
+    (inherit rust-grep-printer-0.2)
+    (name "rust-grep-printer")
+    (version "0.1.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "grep-printer" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0wnw8khcvris8canv1dp58qh6vph18fml9qsnrsmdpxf9ni73hh5"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64" ,rust-base64-0.13)
+        ("rust-bstr" ,rust-bstr-0.2)
+        ("rust-grep-matcher" ,rust-grep-matcher-0.1)
+        ("rust-grep-searcher" ,rust-grep-searcher-0.1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-termcolor" ,rust-termcolor-1))
+       #:cargo-development-inputs
+       (("rust-grep-regex" ,rust-grep-regex-0.1))))))
+
 (define-public rust-grep-regex-0.1
   (package
     (name "rust-grep-regex")
-- 
2.41.0