Subject: [PATCH 10/43] gnu: Add rust-nom-2.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:50:41 +0000

* 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 --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)
-- 
2.41.0