Files
Archimedes/dev/shells.nix
2026-02-16 12:39:33 -06:00

111 lines
2.1 KiB
Nix

{ ... }: {
perSystem = { config, system, pkgs, self', inputs', ... }: {
devShells = {
bash = pkgs.mkShellNoCC {
packages = with pkgs; [
clang
glfw
glew
sdl3
curl
glm
nlohmann_json
stb
gamenetworkingsockets
];
shellHook = ''
'';
};
nvim-bash = pkgs.mkShellNoCC {
packages = with pkgs; [
clang
glfw
glew
sdl3
curl
glm
nlohmann_json
stb
gamenetworkingsockets
];
shellHook = ''
exec nvim
'';
};
zsh = pkgs.mkShellNoCC {
packages = with pkgs; [
clang
glfw
glew
sdl3
curl
glm
nlohmann_json
stb
gamenetworkingsockets
];
shellHook = ''
export SHELL=$(realpath `which zsh`)
exec zsh
'';
};
nvim-zsh = pkgs.mkShellNoCC {
packages = with pkgs; [
clang
glfw
glew
sdl3
curl
glm
nlohmann_json
stb
gamenetworkingsockets
];
shellHook = ''
export SHELL=$(realpath `which zsh`)
exec nvim
'';
};
default = self'.devShells.bash;
};
};
}