From b37d1e02c4b491c49c8b64d46035424b0dc23c4e Mon Sep 17 00:00:00 2001 From: Z572 <873216071@qq.com> Date: Wed, 12 Jan 2022 23:27:22 +0800 Subject: [PATCH] gnu: Add rust-matchers-0.1. * gnu/packages/crates-io.scm (rust-matchers-0.1): New variable. (rust-matchers-0.0): Inherit from above. Signed-off-by: Nicolas Goaziou --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f18fe80db7..c9179cc501 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -30315,8 +30315,33 @@ statement, the first matching branch is the item that gets emitted.") whether an expression matches a pattern.") (license license:expat))) +(define-public rust-matchers-0.1 + (package + (name "rust-matchers") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "matchers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0n2mbk7lg2vf962c8xwzdq96yrc9i0p8dbmm4wa1nnkcp1dhfqw2")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-regex-automata" ,rust-regex-automata-0.1)))) + (home-page "https://github.com/hawkw/matchers") + (synopsis "Regex matching on character and byte streams") + (description + "Use this crate to match on character and byte streams using regular +grammars. It provides the subset of the regex crate that only deals with +matching, not parsing substrings.") + (license license:expat))) + (define-public rust-matchers-0.0 (package + (inherit rust-matchers-0.1) (name "rust-matchers") (version "0.0.1") (source @@ -30331,14 +30356,7 @@ whether an expression matches a pattern.") (build-system cargo-build-system) (arguments `(#:cargo-inputs - (("rust-regex-automata" ,rust-regex-automata-0.1)))) - (home-page "https://github.com/hawkw/matchers") - (synopsis "Regex matching on character and byte streams") - (description - "Use this crate to match on character and byte streams using regular -grammars. It provides the subset of the regex crate that only deals with -matching, not parsing substrings.") - (license license:expat))) + (("rust-regex-automata" ,rust-regex-automata-0.1)))))) (define-public rust-matrixcompare-core-0.1 (package