guix-commits
[Top][All Lists]
Advanced

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

13/27: gnu: Add rust-femme-2.


From: guix-commits
Subject: 13/27: gnu: Add rust-femme-2.
Date: Sun, 3 Jan 2021 16:08:54 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit 974ba2668bdeaac558e8bd84bbe81159bcf2d573
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Dec 20 12:42:24 2020 +0100

    gnu: Add rust-femme-2.
    
    * gnu/packages/crates-io.scm (rust-femme-2): New variable.
    (rust-femme-1): Inherit from above.
---
 gnu/packages/crates-io.scm | 41 +++++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ade018e..7cf8396 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9519,8 +9519,40 @@ implement features such as look-around and backtracking, 
which are not
 supported in purely NFA-based implementations.")
     (license license:expat)))
 
+(define-public rust-femme-2
+  (package
+    (name "rust-femme")
+    (version "2.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "femme" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0d7h1lzbcrqcn8v5l6m7i15lkbbaaz394l6vavbr8nhs757s5w9a"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-0.1)
+        ("rust-js-sys" ,rust-js-sys-0.3)
+        ("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-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+        ("rust-web-sys" ,rust-web-sys-0.3))
+       #:cargo-development-inputs
+       (("rust-kv-log-macro" ,rust-kv-log-macro-1))))
+    (home-page "https://github.com/lrlna/femme";)
+    (synopsis "Pretty-printer and @code{ndjson} logger for @code{log} crate")
+    (description
+     "This package provides a pretty-printer and @code{ndjson} logger for
+@code{log} crate.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-femme-1
   (package
+    (inherit rust-femme-2)
     (name "rust-femme")
     (version "1.3.0")
     (source
@@ -9530,7 +9562,6 @@ supported in purely NFA-based implementations.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0spf66m22dvnz6x077znybk906lh4p5z30nh8c37mad2c3dc56jd"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #false
        #:cargo-inputs
@@ -9543,13 +9574,7 @@ supported in purely NFA-based implementations.")
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
-        ("rust-web-sys" ,rust-web-sys-0.3))))
-    (home-page "https://github.com/lrlna/femme";)
-    (synopsis "Pretty-printer and @code{ndjson} logger for @code{log} crate")
-    (description
-     "This package provides a pretty-printer and @code{ndjson} logger for
-@code{log} crate.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-web-sys" ,rust-web-sys-0.3))))))
 
 (define-public rust-fern-0.6
   (package



reply via email to

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