guix-commits
[Top][All Lists]
Advanced

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

229/295: gnu: Add rust-peg@0.5.7.


From: guix-commits
Subject: 229/295: gnu: Add rust-peg@0.5.7.
Date: Mon, 27 Jul 2020 06:26:21 -0400 (EDT)

dannym pushed a commit to branch wip-desktop
in repository guix.

commit 20b52f344411ec48f5690d89ec451c5eba2f9d24
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 9 06:11:09 2020 -0400

    gnu: Add rust-peg@0.5.7.
    
    * gnu/packages/crates-io.scm (rust-peg-0.5): New variable.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 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 a22e156..0d17c2d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16223,6 +16223,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")



reply via email to

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