19 lines
566 B
Nix
19 lines
566 B
Nix
# Rust and C/C++ in one shell (FFI, cxx, bindgen, -sys crates built with CMake):
|
|
# everything from `cpp` and `rust`, compiled with the cpp shell's Clang. Also an
|
|
# example of composing shells: copy this file to combine others.
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
shells.rust-cpp = {
|
|
description = "rust + cpp on Clang, with bindgen's libclang";
|
|
extends = [
|
|
"cpp"
|
|
"rust"
|
|
];
|
|
# LIBCLANG_PATH and BINDGEN_EXTRA_CLANG_ARGS for bindgen.
|
|
packages = [ pkgs.rustPlatform.bindgenHook ];
|
|
};
|
|
};
|
|
}
|