generic/rust: set LIBCLANG_PATH
This commit is contained in:
parent
eef7d52e6d
commit
7425b281d9
@ -3,6 +3,8 @@
|
||||
, stdenv
|
||||
, mkShell
|
||||
|
||||
, llvmPackages
|
||||
|
||||
, rust-channel ? "stable"
|
||||
, rust-bin
|
||||
, rust-toolchain ? rust-bin.${rust-channel}.latest.default.override {
|
||||
@ -42,6 +44,7 @@ mkShell {
|
||||
|
||||
env = {
|
||||
RUST_SRC_PATH = "${rust-toolchain}/lib/rustlib/src/rust/library";
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
||||
} // (lib.optionalAttrs (enableSccache) {
|
||||
RUSTC_WRAPPER = "${pkgsBuildBuild.sccache}/bin/sccache";
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user