gnu: rust-clang-0.26: Don't hide package.

* gnu/packages/crates-io.scm (rust-clang-0.26)[arguments]: Add
rust-glob-0.2, rust-libc-0.2, rust-libloading-0.5 to cargo-inputs. Add
custom phase to find libclang.
[native-inputs]: Add clang.
[properties]: Don't inherit.
This commit is contained in:
Efraim Flashner 2020-02-11 16:35:41 +02:00
parent a7b3ed2804
commit 15630854fa
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -30,6 +30,7 @@ (define-module (gnu packages crates-io)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages llvm)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ssh)
@ -1581,7 +1582,23 @@ (define-public rust-clang-sys-0.26
(file-name (string-append name "-" version ".crate"))
(sha256
(base32
"1r50dwy5hj5gq07dn0qf8222d07qv0970ymx0j8n9779yayc3w3f"))))))
"1r50dwy5hj5gq07dn0qf8222d07qv0970ymx0j8n9779yayc3w3f"))))
(arguments
`(#:cargo-inputs
(("rust-glob" ,rust-glob-0.2)
("rust-libc" ,rust-libc-0.2)
("rust-libloading" ,rust-libloading-0.5))
#: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)))
(properties '())))
(define-public rust-clap-2
(package