From b88d76191d6ccc6b3fee1e3a5fac87214bd33921 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 9 Jul 2020 06:11:09 -0400 Subject: [PATCH 25/62] gnu: Add rust-peg-0.5. * gnu/packages/crates-io.scm (rust-peg-0.5): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ea1f505e7e..1831477dc1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -16222,6 +16222,32 @@ the @code{take_while} predicate returned false after dropping the @code{by_ref}. (license (list license:asl2.0 license:expat)))) +(define-public rust-peg-0.5 + (package + (name "rust-peg") + (version "0.5.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "peg" version)) + (file-name (string-append name "-" version ".crate")) + (sha256 + (base32 + "11az3bs3ngvfip920xfr0zwblfkyg6cjgz1v9hmfsdnqw7fi5ps0")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-peg-macros" ,rust-peg-macros-0.6) + ("rust-quote" ,rust-quote-0.3) + ("rust-peg-runtime" ,rust-peg-runtime-0.6) + ("rust-trybuild" ,rust-trybuild-1.0)))) + (home-page "https://crates.io/crates/peg") + (synopsis "Parsing Expression Grammars in Rust") + (description "Rust-peg is a simple yet flexible parser generator based on +the Parsing Expression Grammar formalism. It provides a Rust macro that builds +a recursive descent parser from a concise definition of the grammar.") + (license license:expat))) + (define-public rust-peg-0.6 (package (name "rust-peg") -- 2.27.0