diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-07-13 21:55:07 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-08-14 19:38:13 +0300 |
commit | 51b646ab7b03cd21e8ae3bd12c3930a74297725b (patch) | |
tree | 39cb483d1f70e76f24d85352d41ad459a6c93a58 /gnu | |
parent | d527cde325ebe55c99483171347db2da1bff1cb0 (diff) | |
download | guix-51b646ab7b03cd21e8ae3bd12c3930a74297725b.tar.gz |
gnu: Add rust-regex-automata-0.3.
* gnu/packages/crates-io.scm (rust-regex-automata-0.3): New variable. (rust-regex-automata-0.1): Inherit from rust-regex-automata-0.3.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 58 |
1 files changed, 41 insertions, 17 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7bef0450b5..f58aba66f6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -52293,20 +52293,50 @@ uses finite automata and guarantees linear time matching on all inputs.") ("rust-quickcheck" ,rust-quickcheck-0.2) ("rust-rand" ,rust-rand-0.3)))))) +(define-public rust-regex-automata-0.3 + (package + (name "rust-regex-automata") + (version "0.3.3") + (source (origin + (method url-fetch) + (uri (crate-uri "regex-automata" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "041kj8fnyh3hv8sqmqq1am6agb1ckjxj6swjfcp8qih7vl84qd9r")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Not all files included. + #:cargo-inputs + (("rust-aho-corasick" ,rust-aho-corasick-1) + ("rust-log" ,rust-log-0.4) + ("rust-memchr" ,rust-memchr-2) + ("rust-regex-syntax" ,rust-regex-syntax-0.7)) + #:cargo-development-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-bstr" ,rust-bstr-1) + ("rust-doc-comment" ,rust-doc-comment-0.3) + ("rust-env-logger" ,rust-env-logger-0.9) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-regex-test" ,rust-regex-test-0.1)))) + (home-page "https://github.com/rust-lang/regex/tree/master/regex-automata") + (synopsis "Automata construction and matching using regular expressions") + (description + "Automata construction and matching using regular expressions.") + (license (list license:expat license:asl2.0)))) + (define-public rust-regex-automata-0.1 (package + (inherit rust-regex-automata-0.3) (name "rust-regex-automata") (version "0.1.9") - (source - (origin - (method url-fetch) - (uri (crate-uri "regex-automata" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1r3aqa9c0s9sfrmd2w0mli16ldjzbar0rzb1x7srfjkasrqys7df")))) - (build-system cargo-build-system) + (source (origin + (method url-fetch) + (uri (crate-uri "regex-automata" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1r3aqa9c0s9sfrmd2w0mli16ldjzbar0rzb1x7srfjkasrqys7df")))) (arguments `(#:skip-build? #t #:cargo-inputs @@ -52320,13 +52350,7 @@ uses finite automata and guarantees linear time matching on all inputs.") ("rust-serde" ,rust-serde-1) ("rust-serde-bytes" ,rust-serde-bytes-0.11) ("rust-serde-derive" ,rust-serde-derive-1) - ("rust-toml" ,rust-toml-0.5)))) ; 0.4 - (home-page "https://github.com/BurntSushi/regex-automata") - (synopsis - "Automata construction and matching using regular expressions") - (description - "Automata construction and matching using regular expressions.") - (license (list license:expat license:unlicense)))) + ("rust-toml" ,rust-toml-0.5)))))) ; 0.4 (define-public rust-regex-syntax-0.6 (package |