diff mbox series

[bug#69890,10/43] gnu: Add rust-nom-2.

Message ID 54f24a905256f609d0250836b23d8a4b81ccba08.1710817680.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:50 a.m. UTC
* gnu/packages/crates-io.scm (rust-nom-2): New variable.

Change-Id: I9a2518c67145f601de9d525d9bab252ea48d91f2
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f4e37b61fc..b9e65eafef 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41628,6 +41628,27 @@  (define-public rust-nom-3
         ("rust-memchr" ,rust-memchr-1)
         ("rust-regex" ,rust-regex-0.2))))))
 
+(define-public rust-nom-2
+  (package
+    (inherit rust-nom-4)
+    (name "rust-nom")
+    (version "2.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nom" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zv6ig7nw532rl4p35jsahglfhyyznjkblwa6si6c0plxhlsflfg"))))
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--" ; Cannot find file for tests.
+         "--skip=stream::tests::seeking_consumer"
+         "--skip=big_bunny_test"
+         "--skip=small_test")
+       #:cargo-inputs (("rust-lazy-static" ,rust-lazy-static-0.2)
+                       ("rust-regex" ,rust-regex-0.2))))))
+
 (define-public rust-nom-1
   (package
     (inherit rust-nom-4)