diff options
author | Valentin Ignatev <valentignatev@gmail.com> | 2020-01-26 16:13:24 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-02-26 14:00:54 +0200 |
commit | d1e647e3638e1c2bcedfc918ccbd34a7ad78315a (patch) | |
tree | 9cbb54af1b792c053af1f9c83e906cc18e64daf5 | |
parent | 389f9ab6ab52d73cfd82b6ef1fc5e07098357ea5 (diff) | |
download | guix-d1e647e3638e1c2bcedfc918ccbd34a7ad78315a.tar.gz |
gnu: Add rust-cexpr-0.2.
* gnu/packages/crates-io.scm (rust-cexpr-0.2): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index db52c144c9..39332dd78a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1789,6 +1789,37 @@ archive to be linked into Rustcode.") "This package provides a C expression parser and evaluator.") (license (list license:asl2.0 license:expat)))) +(define-public rust-cexpr-0.2 + (package + (inherit rust-cexpr-0.3) + (name "rust-cexpr") + (version "0.2.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "cexpr" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0v1xa3758czmj8h97gh548mr8g0v13ixxvrlm1s79nb7jmgc9aj2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-nom" ,rust-nom-3)) + #:cargo-development-inputs + (("rust-clang-sys" ,rust-clang-sys-0.11)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-environmental-variable + (lambda* (#:key inputs #:allow-other-keys) + (let ((clang (assoc-ref inputs "libclang"))) + (setenv "LIBCLANG_PATH" + (string-append clang "/lib"))) + #t))))) + (inputs + `(("libclang" ,clang))))) + (define-public rust-chrono-0.4 (package (name "rust-chrono") |