From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 62/86] gnu: Add rust-regex. Date: Tue, 3 Jan 2017 23:36:18 +0000 Message-ID: <20170103233642.3181-63-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYf9-0004MA-QS for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYf8-00027U-Pb for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:39 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYf8-000265-GI for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:38 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYf7-0002pj-Aq for guix-devel@gnu.org; Wed, 04 Jan 2017 00:38:37 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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