summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-04-23 17:46:30 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:35 +0300
commit016dcbe6b9a215fb72aa70ed02dbbf537131d83d (patch)
tree939d5533dde02be84234e856c1ee342ed6af25b8 /gnu/packages
parentf46dabb185e339241f1acf66909233cb7c28fd20 (diff)
downloadguix-016dcbe6b9a215fb72aa70ed02dbbf537131d83d.tar.gz
gnu: Add rust-simple-logger-2.
* gnu/packages/crates-io.scm (rust-simple-logger-2): New variable.
(rust-simple-logger-1): Inherit from rust-simple-logger-2.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 28 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ddd48cdd88..b1e095c69b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56860,8 +56860,35 @@ diff output.")
 small to medium sized project")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-simple-logger-2
+  (package
+    (name "rust-simple-logger")
+    (version "2.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "simple-logger" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1ivdlw45f07byxgl43l2pa0dlnclbw1aj40shjpil598nmvpw128"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-atty" ,rust-atty-0.2)
+        ("rust-colored" ,rust-colored-2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-time" ,rust-time-0.3)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/borntyping/rust-simple_logger")
+    (synopsis "Logger with a readable output format")
+    (description
+     "This package provides a logger that prints all messages with
+a readable output format.")
+    (license license:expat)))
+
 (define-public rust-simple-logger-1
   (package
+    (inherit rust-simple-logger-2)
     (name "rust-simple-logger")
     (version "1.13.0")
     (source
@@ -56871,20 +56898,13 @@ small to medium sized project")
         (file-name (string-append name "-" version ".tar.gz"))
         (sha256
           (base32 "01wz5xjpski45xq8v1bg8g05flj5h1sl63aabl2c6kj0hz337pmp"))))
-    (build-system cargo-build-system)
     (arguments
       `(#:cargo-inputs
         (("rust-atty" ,rust-atty-0.2)
          ("rust-chrono" ,rust-chrono-0.4)
          ("rust-colored" ,rust-colored-1)
          ("rust-log" ,rust-log-0.4)
-         ("rust-winapi" ,rust-winapi-0.3))))
-    (home-page "https://github.com/borntyping/rust-simple_logger")
-    (synopsis "Logger with a readable output format")
-    (description
-      "This package provides a logger that prints all messages with
-a readable output format")
-    (license license:expat)))
+         ("rust-winapi" ,rust-winapi-0.3))))))
 
 (define-public rust-simple-mutex-1
   (package