add shell for libclang with rust

This commit is contained in:
Artemis Tosini 2024-09-13 02:04:30 +00:00
parent 81a0d5ea57
commit f00f864a46
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 17 additions and 0 deletions

View file

@ -42,6 +42,7 @@
plotter = pkgs.callPackage ./shells/plotter { };
rust = pkgs.callPackage ./shells/rust { };
rust9x = pkgs.callPackage ./shells/rust9x { };
rust-libclang = pkgs.callPackage ./shells/rust-libclang { };
ryujinx = pkgs.callPackage ./shells/ryujinx { };
uboot = pkgs.callPackage ./shells/uboot { };
zephyr = pkgs.callPackage ./shells/zephyr { };

View file

@ -0,0 +1,16 @@
{
cargo,
cargo-expand,
llvmPackages,
mkShell,
rustc,
}:
(mkShell.override { stdenv = llvmPackages.stdenv; }) {
packages = [
cargo
cargo-expand
rustc
];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
}