diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-07-09 11:10:56 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-07-09 17:00:16 +0300 |
commit | a93ceeac8229005d4d2a06987f80c78df07b7225 (patch) | |
tree | d9cbca8c1ec7f405600ebb16373d03bda73e49b8 /gnu | |
parent | 28ca765504926945ac14f8c68ae65b1cb987a138 (diff) | |
download | guix-a93ceeac8229005d4d2a06987f80c78df07b7225.tar.gz |
gnu: rust-cexpr-0.3: Don't skip build.
* gnu/packages/crates-io.scm (rust-cexpr-0.3)[arguments]: Don't skip build. Add custom phase to find clang. [inputs]: Add clang. (rust-cexpr-0.2)[inputs]: Inherit from rust-cexpr-0.3.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 698f78f2fd..d73a3bac7e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2778,11 +2778,20 @@ archive to be linked into Rustcode.") "07fdfj4ff2974y33yixrb657riq9zl9b9h9lr0h7ridhhvxvbrgw")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs + `(#:cargo-inputs (("rust-nom" ,rust-nom-4.2)) #:cargo-development-inputs - (("rust-clang-sys" ,rust-clang-sys-0.28)))) + (("rust-clang-sys" ,rust-clang-sys-0.28)) + #: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))) (home-page "https://github.com/jethrogb/rust-cexpr") (synopsis "C expression parser and evaluator") (description @@ -2816,9 +2825,7 @@ archive to be linked into Rustcode.") (let ((clang (assoc-ref inputs "libclang"))) (setenv "LIBCLANG_PATH" (string-append clang "/lib"))) - #t))))) - (inputs - `(("libclang" ,clang))))) + #t))))))) (define-public rust-cfg-if-0.1 (package |