diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3850df5403..d2a99da625 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -29754,8 +29754,52 @@ implementation (which is unstable / requires nightly).") (license (list license:asl2.0 license:expat)))) +(define-public rust-nom-7 + (package + (name "rust-nom") + (version "7.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nom" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ha24yclw4m74gi9p5c3d68rhrrcb7qvkgicz153p5cahck9vzbz")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Tests require example directory, not included in tarball. + #:cargo-inputs + (("rust-memchr" ,rust-memchr-2) + ("rust-minimal-lexical" ,rust-minimal-lexical-0.1) + ("rust-version-check" ,rust-version-check-0.9)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-doc-comment" ,rust-doc-comment-0.3) + ("rust-jemallocator" ,rust-jemallocator-0.3) + ("rust-proptest" ,rust-proptest-1)) + #:phases + (modify-phases %standard-phases + (add-after 'configure 'override-jemalloc + (lambda* (#:key inputs #:allow-other-keys) + (let ((jemalloc (assoc-ref inputs "jemalloc"))) + (setenv "JEMALLOC_OVERRIDE" + (string-append jemalloc "/lib/libjemalloc_pic.a"))) + #t))))) + (native-inputs + `(("jemalloc" ,jemalloc))) + (home-page "https://github.com/Geal/nom") + (synopsis + "Byte-oriented, zero-copy, parser combinators library") + (description + "This package provides a byte-oriented, zero-copy, parser +combinators library.") + (license license:expat))) + (define-public rust-nom-6 (package + (inherit rust-nom-7) (name "rust-nom") (version "6.0.1") (source @@ -29767,7 +29811,6 @@ implementation (which is unstable / requires nightly).") (sha256 (base32 "1w0ppq112myzwk23c8m0wmq0nv73xvn0g9gl2kfm83aadgylq0w8")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; Tests require example directory, not included in tarball. #:cargo-inputs @@ -29788,16 +29831,7 @@ implementation (which is unstable / requires nightly).") (let ((jemalloc (assoc-ref inputs "jemalloc"))) (setenv "JEMALLOC_OVERRIDE" (string-append jemalloc "/lib/libjemalloc_pic.a"))) - #t))))) - (native-inputs - `(("jemalloc" ,jemalloc))) - (home-page "https://github.com/Geal/nom") - (synopsis - "Byte-oriented, zero-copy, parser combinators library") - (description - "This package provides a byte-oriented, zero-copy, parser -combinators library.") - (license license:expat))) + #t))))))) (define-public rust-nom-5 (package