I have followed the instructions in this thread to install CppTools.
Now I want to develop a opengl application. To do that, I drop into the nix-shell:
nix-shell -p glm glfw3 glew mesa_glu mesa_drivers libGL_driver clang
which is supposed to setup all required libraries. This works and I can use Make
to create an executable.
Can I configure the intellisense include path to find the sources and documentation to these libraries?
Also, how can I configure the run tasks
to execute the program within a nix-shell? i have the following:
{
"version": "2.0.0",
"tasks": [
{
"label": "build and run",
"type": "shell",
"command": "nix-shell -p glm glfw3 glew mesa_glu mesa_drivers libGL_driver clang --run 'make clean && make && ./bin/program'"
}
]
}
This works, but seems clunky.
Maybe it is possible to define an appropriate shell.nix installs a fitting vscode and configures the include path?