Subject: [PATCH 3/4] gnu: Add rust-pretty-env-logger-0.5.

From: Herman Rimm <[email-masked]>
Date: Sat, 27 Jan 2024 09:50:37 +0100

* gnu/packages/crates-io.scm (rust-pretty-env-logger-0.5): New variable.
(rust-pretty-env-logger-0.4): Inherit from rust-pretty-env-logger-0.5.

Change-Id: Iab291c7f772bae0b5f86ef034162c7af03441834
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5acd32748f..733de28979 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46889,8 +46889,29 @@ (define-public rust-pretty-assertions-0.4
        (("rust-ansi-term" ,rust-ansi-term-0.9)
         ("rust-difference" ,rust-difference-1))))))
 
+(define-public rust-pretty-env-logger-0.5
+  (package
+    (name "rust-pretty-env-logger")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty_env_logger" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "076w9dnvcpx6d3mdbkqad8nwnsynb7c8haxmscyrz7g3vga28mw6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-env-logger" ,rust-env-logger-0.10)
+                       ("rust-log" ,rust-log-0.4))))
+    (home-page "https://github.com/seanmonstar/pretty-env-logger")
+    (synopsis "Visually pretty env_logger")
+    (description "This package provides a visually pretty env_logger.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pretty-env-logger-0.4
   (package
+    (inherit rust-pretty-env-logger-0.5)
     (name "rust-pretty-env-logger")
     (version "0.4.0")
     (source
@@ -46902,15 +46923,11 @@ (define-public rust-pretty-env-logger-0.4
         (sha256
          (base32
           "17gva1rlf9fhgr0jr19kv39f8bir3f4pa4jz02qbhl9qanwkcvcj"))))
-    (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
+     `(#:skip-build? #t
+       #:cargo-inputs
        (("rust-env-logger" ,rust-env-logger-0.7)
-        ("rust-log" ,rust-log-0.4))))
-    (home-page "https://github.com/seanmonstar/pretty-env-logger")
-    (synopsis "Visually pretty env_logger")
-    (description "This package provides a visually pretty env_logger.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-log" ,rust-log-0.4))))))
 
 (define-public rust-pretty-env-logger-0.3
   (package
-- 
2.41.0