game-engine/shell.nix
Benjamin Palko bdc130ac86 no bear!
2024-08-03 23:33:48 -04:00

20 lines
436 B
Nix

{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
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++";
'';
}