diff options
author | Valentin Ignatev <valentignatev@gmail.com> | 2020-01-26 16:12:40 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-02-26 14:00:54 +0200 |
commit | 389f9ab6ab52d73cfd82b6ef1fc5e07098357ea5 (patch) | |
tree | 9a1fcaad6def8f84ac2a814bcc6df2c9e1c655ee | |
parent | a83d31ef844ada117e21e803cadcacc8e9d6358e (diff) | |
download | patches-389f9ab6ab52d73cfd82b6ef1fc5e07098357ea5.tar patches-389f9ab6ab52d73cfd82b6ef1fc5e07098357ea5.tar.gz |
gnu: Add rust-clang-sys-0.11.
* gnu/packages/crates-io.scm (rust-clang-sys-0.11): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9d2dab60ef..db52c144c9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2068,6 +2068,38 @@ for computer graphics.") (string-append clang "/lib"))) #t))))))) +(define-public rust-clang-sys-0.11 + (package + (inherit rust-clang-sys-0.22) + (name "rust-clang-sys") + (version "0.11.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "clang-sys" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "17i47skqp1d9svil2m1wspnhz7ci1x0fipia70ns0qffciwiz48r")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-bitflags" ,rust-bitflags-0.7) + ("rust-clippy" ,rust-clippy-0.0) + ("rust-glob" ,rust-glob-0.2) + ("rust-lazy-static" ,rust-lazy-static-0.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-libloading" ,rust-libloading-0.3)) + #: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))))))) + (define-public rust-clap-2 (package (name "rust-clap") |