Subject: [bug#72467] [PATCH 2/7] gnu: Add rust-nom-locate-4.

From: "Suhail Singh" <[email-masked]>
Date: Sun, 04 Aug 2024 12:42:19 -0400

* gnu/packages/crates-io.scm (rust-nom-locate-4): New variable.

Change-Id: I5237f0b6e3463bbd5cd2048060334f88cf75d27a
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 757bdfe3f1..d1bd708f64 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46698,6 +46698,29 @@ (define-public rust-nom-derive-impl-0.10
     (description "This package provides custom derive nom parsers from structs.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-nom-locate-4
+  (package
+    (name "rust-nom-locate")
+    (version "4.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nom_locate" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1wx87c2pm84h63rb4rsjrqzgx574x1zy93av1jk3swdhag086g0y"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bytecount" ,rust-bytecount-0.6)
+                       ("rust-memchr" ,rust-memchr-1)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-stable-deref-trait" ,rust-stable-deref-trait-1))))
+    (home-page "https://github.com/fflorent/nom_locate")
+    (synopsis "special input type for nom to locate tokens")
+    (description
+     "This package provides a special input type for nom to locate tokens.")
+    (license license:expat)))
+
 (define-public rust-nonempty-0.7
   (package
     (name "rust-nonempty")
-- 
2.46.0