aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-20 12:42:24 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-03 22:06:32 +0100
commit974ba2668bdeaac558e8bd84bbe81159bcf2d573 (patch)
tree0b0df05d4c8257e06539fa01a08ad0fa4697673d
parent77905166cec419ceb57af374405bcedb65ac2347 (diff)
downloadguix-974ba2668bdeaac558e8bd84bbe81159bcf2d573.tar.gz
guix-974ba2668bdeaac558e8bd84bbe81159bcf2d573.zip
gnu: Add rust-femme-2.
* gnu/packages/crates-io.scm (rust-femme-2): New variable. (rust-femme-1): Inherit from above.
-rw-r--r--gnu/packages/crates-io.scm41
1 files changed, 33 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ade018eb47..7cf839675f 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