From 7425b281d9a18da7ada7db016104092344aba5d3 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 5 Dec 2024 13:44:55 +0100 Subject: [PATCH] generic/rust: set LIBCLANG_PATH --- generic/rust/shell.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generic/rust/shell.nix b/generic/rust/shell.nix index 73cfad6..3b8abfa 100644 --- a/generic/rust/shell.nix +++ b/generic/rust/shell.nix @@ -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"; });