diff mbox series

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

Message ID cf3c53a77e9df2b542303389962a2157bc633580.1722777393.git.suhail@bayesians.ca
State New
Headers show
Series Add complgen. | expand

Commit Message

Suhail Singh Aug. 4, 2024, 4:42 p.m. UTC
* 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 mbox series

Patch

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")