guix-commits
[Top][All Lists]
Advanced

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

177/311: gnu: Add rust-simplelog-0.12.


From: guix-commits
Subject: 177/311: gnu: Add rust-simplelog-0.12.
Date: Sat, 28 Oct 2023 16:38:59 -0400 (EDT)

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

commit 62cc324e7649bc195c88aea01927791cca223fc7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Oct 25 09:56:48 2023 +0300

    gnu: Add rust-simplelog-0.12.
    
    * gnu/packages/crates-io.scm (rust-simplelog-0.12): New variable.
    (rust-simplelog-0.11): Inherit from rust-simplelog-0.12.
    
    Change-Id: Ie101636088c7eed8ace722bc9ea53809c357f965
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 47df745196..ff1c48939e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -68771,8 +68771,39 @@ extensions.")
 diff output.")
     (license license:asl2.0)))
 
+(define-public rust-simplelog-0.12
+  (package
+    (name "rust-simplelog")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "simplelog" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0sa3hjdifxhcb9lnlg549fr2cc7vz89nygwbih2dbqsx3h20ivmc"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 (substitute* "Cargo.toml"
+                   (("1\\.1\\.\\*") "1.1"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.12)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-paris" ,rust-paris-1)
+                       ("rust-termcolor" ,rust-termcolor-1)
+                       ("rust-time" ,rust-time-0.3))))
+    (home-page "https://github.com/drakulix/simplelog.rs";)
+    (synopsis "Simple and easy-to-use logging facility for Rust's log crate")
+    (description
+     "This package provides a simple and easy-to-use logging facility for 
Rust's
+@code{log} crate.  It aims to be a maintainable, easy to integrate facility for
+small to medium sized project")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-simplelog-0.11
   (package
+    (inherit rust-simplelog-0.12)
     (name "rust-simplelog")
     (version "0.11.1")
     (source
@@ -68782,7 +68813,6 @@ diff output.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "11h8q8lykc829f4bd5llw35p4qi9g6mp0mk1p281fq8qi48w1azc"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -68790,14 +68820,7 @@ diff output.")
         ("rust-chrono" ,rust-chrono-0.4)
         ("rust-log" ,rust-log-0.4)
         ("rust-paris" ,rust-paris-1)
-        ("rust-termcolor" ,rust-termcolor-1))))
-    (home-page "https://github.com/drakulix/simplelog.rs";)
-    (synopsis "Simple and easy-to-use logging facility for Rust's log crate")
-    (description
-     "This package provides a simple and easy-to-use logging facility for 
Rust's
-@code{log} crate.  It aims to be a maintainable, easy to integrate facility for
-small to medium sized project")
-    (license (list license:expat license:asl2.0))))
+        ("rust-termcolor" ,rust-termcolor-1))))))
 
 (define-public rust-simple-logger-2
   (package



reply via email to

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