game-engine/shell.nix
2024-08-03 22:58:07 -04:00

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++";
'';
}