try dev shell

This commit is contained in:
2026-02-03 18:15:37 -06:00
parent cd19db0b88
commit 148ed1253c
3 changed files with 42 additions and 6 deletions

4
.gitignore vendored
View File

@@ -1 +1,3 @@
vendor/* vendor/
.ccls-cache/
.ccls

View File

@@ -12,13 +12,10 @@
clang clang
]; ];
/*buildInputs = with pkgs; [
];*/
buildPhase = '' buildPhase = ''
clang++ \ clang++ \
src/example_apps/MinimalApp/MinimalApp.cpp \ src/example_apps/MinimalApp/MinimalApp.cpp \
-I src -I include \ -I include \
-Wall \ -Wall \
-o $name -o $name
''; '';

View File

@@ -264,5 +264,42 @@
program = "${self.Archimedes.examples.MinimalApp}/bin/Archimedes"; program = "${self.Archimedes.examples.MinimalApp}/bin/Archimedes";
}; };
devShells.${system} = {
default = pkgs.mkShellNoCC {
packages = with pkgs; [
clang
glfw
glew
sdl3
curl
nlohmann_json
imgui
gamenetworkingsockets
];
shellHook = ''
cp ${(pkgs.writeText ".ccls" ''
clang++
-Iinputs
-I.
-I${gamenetworkingsockets}/include/GameNetworkingSockets
-DWINDOW=1
-DRENDERER=1
'')} ./.ccls
'';
};
};
}; };
} }