21 lines
445 B
Nix
21 lines
445 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
pkgs.mkShell {
|
|
# nativeBuildInputs is usually what you want -- tools you need to run
|
|
nativeBuildInputs = with pkgs.buildPackages; [
|
|
bear
|
|
gnumake
|
|
cmake
|
|
vcpkg
|
|
clang
|
|
clang-tools
|
|
pkg-config
|
|
];
|
|
|
|
shellHook = ''
|
|
export VCPKG_ROOT="${pkgs.vcpkg.outPath}/share/vcpkg";
|
|
export CC="${pkgs.clang.outPath}/bin/clang";
|
|
export CXX="${pkgs.clang.outPath}/bin/clang++";
|
|
'';
|
|
}
|