diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-10-10 10:36:26 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-10-10 12:31:31 +0300 |
commit | 1451be05f4529b3e968c899b50936ed71567daf1 (patch) | |
tree | c0d0acbb087f53e3f39affa871330acfc07122b4 | |
parent | 498ef1590b241373ca3bfc8b69d50a69345f55a8 (diff) | |
download | guix-1451be05f4529b3e968c899b50936ed71567daf1.tar.gz |
gnu: Add rust-nom-7.
* gnu/packages/crates-io.scm (rust-nom-7): New variable. (rust-nom-6): Inherit from rust-nom-7.
-rw-r--r-- | gnu/packages/crates-io.scm | 52 |
1 files changed, 43 insertions, 9 deletions
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,10 +29754,10 @@ implementation (which is unstable / requires nightly).") (license (list license:asl2.0 license:expat)))) -(define-public rust-nom-6 +(define-public rust-nom-7 (package (name "rust-nom") - (version "6.0.1") + (version "7.0.0") (source (origin (method url-fetch) @@ -29766,21 +29766,19 @@ implementation (which is unstable / requires nightly).") (string-append name "-" version ".tar.gz")) (sha256 (base32 - "1w0ppq112myzwk23c8m0wmq0nv73xvn0g9gl2kfm83aadgylq0w8")))) + "1ha24yclw4m74gi9p5c3d68rhrrcb7qvkgicz153p5cahck9vzbz")))) (build-system cargo-build-system) (arguments `(#:tests? #f ; Tests require example directory, not included in tarball. #:cargo-inputs - (("rust-bitvec" ,rust-bitvec-0.19) - ("rust-lazy-static" ,rust-lazy-static-1) - ("rust-lexical-core" ,rust-lexical-core-0.7) - ("rust-memchr" ,rust-memchr-2) - ("rust-regex" ,rust-regex-1) + (("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-jemallocator" ,rust-jemallocator-0.3) + ("rust-proptest" ,rust-proptest-1)) #:phases (modify-phases %standard-phases (add-after 'configure 'override-jemalloc @@ -29799,6 +29797,42 @@ implementation (which is unstable / requires nightly).") combinators library.") (license license:expat))) +(define-public rust-nom-6 + (package + (inherit rust-nom-7) + (name "rust-nom") + (version "6.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "nom" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1w0ppq112myzwk23c8m0wmq0nv73xvn0g9gl2kfm83aadgylq0w8")))) + (arguments + `(#:tests? #f ; Tests require example directory, not included in tarball. + #:cargo-inputs + (("rust-bitvec" ,rust-bitvec-0.19) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-lexical-core" ,rust-lexical-core-0.7) + ("rust-memchr" ,rust-memchr-2) + ("rust-regex" ,rust-regex-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)) + #: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))))))) + (define-public rust-nom-5 (package (inherit rust-nom-6) |