From cf6eafcdf15a42d42de51c018aae0680012347db Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 13 Dec 2019 21:25:02 -0800 Subject: [PATCH 006/263] gnu: Add rust-regex-1.1. * gnu/packages/crates-io.scm (rust-regex-1.1): New variable. --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f34f84b981..1f1e6c99ac 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2977,6 +2977,41 @@ system calls.") (properties '((hidden? . #t))) (license license:expat))) +(define-public rust-regex-1.1 + (package + (name "rust-regex") + (version "1.1.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "regex" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pabajpp0wzb7dm2x32gy8w7k0mwykr6zsvzn0fgpr6pww40hbqb")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build #t + #:cargo-inputs + (("rust-aho-corasick" ,rust-aho-corasick-0.7) + ("rust-memchr" ,rust-memchr-2.2) + ("rust-regex-syntax" ,rust-regex-syntax-0.6) + ("rust-thread-local" ,rust-thread-local-0.3) + ("rust-utf8-ranges" ,rust-utf8-ranges-1.0)) + #:cargo-development-inputs + (("rust-doc-comment" ,rust-doc-comment-0.3) + ("rust-lazy-static" ,rust-lazy-static-1.3) + ("rust-quickcheck" ,rust-quickcheck-0.8) + ("rust-rand" ,rust-rand-0.4)))) + (home-page "https://github.com/rust-lang/regex") + (synopsis + "Regular expressions for Rust") + (description + "An implementation of regular expressions for Rust. This implementation +uses finite automata and guarantees linear time matching on all inputs.") + (license `(,license:expat ,license:asl2.0)))) + (define-public rust-regex-syntax-0.6 (package (name "rust-regex-syntax") -- 2.24.1