guix-commits
[Top][All Lists]
Advanced

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

24/39: gnu: Add rust-peg@0.6.2.


From: guix-commits
Subject: 24/39: gnu: Add rust-peg@0.6.2.
Date: Thu, 16 Jul 2020 21:40:48 -0400 (EDT)

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

commit db26b98b5a6a41ca489185a6d96d1e53789d4d5f
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 9 05:56:20 2020 -0400

    gnu: Add rust-peg@0.6.2.
    
    * gnu/packages/crates-io.scm (rust-peg-0.6): New variable.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cb28105..a22e156 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16223,6 +16223,37 @@ 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.6
+  (package
+    (name "rust-peg")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "peg" version))
+       (file-name (string-append name "-" version ".crate"))
+       (sha256
+        (base32
+         "15rfp12dgsynplphp443zfw47m2d5snvdm6a25gz48dv2if8fxch"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-failing-tests
+           (lambda _
+             (delete-file "tests/compile-fail/rust_action_type_error.rs")
+             #t)))
+       #:cargo-inputs
+       (("rust-peg-macros" ,rust-peg-macros-0.6)
+        ("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-macros-0.6
   (package
     (name "rust-peg-macros")



reply via email to

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