summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-24 10:00:30 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:58:32 +0200
commit10a9f91c4f5f1fd4087c192cf159a6b816f7e9e6 (patch)
tree6cf04cede2e4343a8f12a5bb3ff90124061b6615 /gnu
parent17e388ae4cc52d3f722171381d5f18f1cfc4227c (diff)
gnu: Add rust-regex-automata-0.4.
* gnu/packages/crates-io.scm (rust-regex-automata-0.4): New variable. (rust-regex-automata-0.3): Inherit from rust-regex-automata-0.4. Change-Id: Ic63656f4bfab4a7875a067814f3ca719db649b01
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm41
1 files changed, 34 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c670cf1fce..2b843d4b1c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59484,8 +59484,41 @@ 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.4
+ (package
+ (name "rust-regex-automata")
+ (version "0.4.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "regex-automata" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0gs8q9yhd3kcg4pr00ag4viqxnh5l7jpyb9fsfr8hzh451w4r02z"))))
+ (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.8))
+ #: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.3
(package
+ (inherit rust-regex-automata-0.4)
(name "rust-regex-automata")
(version "0.3.3")
(source (origin
@@ -59495,7 +59528,6 @@ uses finite automata and guarantees linear time matching on all inputs.")
(sha256
(base32
"041kj8fnyh3hv8sqmqq1am6agb1ckjxj6swjfcp8qih7vl84qd9r"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; Not all files included.
#:cargo-inputs
@@ -59509,12 +59541,7 @@ uses finite automata and guarantees linear time matching on all inputs.")
("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))))
+ ("rust-regex-test" ,rust-regex-test-0.1))))))
(define-public rust-regex-automata-0.1
(package