guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 62/86] gnu: Add rust-regex.


From: ng0
Subject: [PATCH 62/86] gnu: Add rust-regex.
Date: Tue, 3 Jan 2017 23:36:18 +0000

* gnu/packages/rust.scm (rust-regex): New variable.
---
 gnu/packages/rust.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 9b3b62c0a..2c3f802d0 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1708,3 +1708,35 @@ values to UTF-8 byte ranges.  This is useful when 
constructing byte
 based automata from Unicode.  Stated differently, this lets one embed
 UTF-8 decoding as part of one's automaton.")
     (license (list license:unlicense license:expat))))
+
+(define-public rust-regex
+  (package
+    (name "rust-regex")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "regex" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "11r5392j9cwisspmjbppdamjybhwc4mjhw62zwj79ldig267ff2k"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     `(("rust-lazy-static" ,rust-lazy-static "src")
+       ("rust-quickcheck" ,rust-quickcheck "src")
+       ("rust-rand" ,rust-rand "src")))
+    (inputs
+     `(("rust-aho-corasick" ,rust-aho-corasick "src")
+       ("rust-memchr" ,rust-memchr "src")
+       ("rust-regex-syntax" ,rust-regex-syntax "src")
+       ("rust-simd" ,rust-simd "src")
+       ("rust-thread-local" ,rust-thread-local "src")
+       ("rust-utf8-ranges" ,rust-utf8-ranges "src")))
+    (home-page "https://github.com/rust-lang/regex";)
+    (synopsis "Implementation of regular expressions")
+    (description
+     "Implementation of regular expressions for Rust.  This implementation uses
+finite automata and guarantees linear time matching on all inputs.")
+    (license (list license:expat license:asl2.0))))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]