From acada2580fa249cd3aad074c310ef2e6e1a9022f Mon Sep 17 00:00:00 2001 From: Evgenii Lepikhin Date: Sat, 2 Apr 2022 00:54:32 +0300 Subject: gnu: Add rust-nom-locate-4. * gnu/packages/crates-io.scm (rust-nom-locate-4): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7301084382..1ffce53949 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2021 Nicolas Graves ;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2022 Marius Bakke +;;; Copyright © 2022 Evgenii Lepikhin ;;; ;;; This file is part of GNU Guix. ;;; @@ -37548,6 +37549,30 @@ combinators library.") (description "This package derives custom nom parsers from structs.") (license (list license:expat license:asl2.0)))) +(define-public rust-nom-locate-4 + (package + (name "rust-nom-locate") + (version "4.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nom_locate" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0186n5qbpiyhpas3nk8y4ynnbdghl4nx958bkq4a6a9hr8v48y9p")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-bytecount" ,rust-bytecount-0.6) + ("rust-memchr" ,rust-memchr-2) + ("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 crate provides the @code{LocatedSpan} struct that +encapsulates the data.") + (license (list license:expat)))) + (define-public rust-noop-proc-macro-0.3 (package (name "rust-noop-proc-macro") -- cgit v1.2.3