let's say you have a C++ project in Nix that you want to work on with CLion so that the nix dependencies are available.
- create a
.nixutility directory in your project directory. - put the below
nix-run.shandnix-cmake.shin the.nixdirectory. - in the
.nixdirectory create symlinks formake,gcc,g++- and maybe more tools, that need to have the nix dependencies and build tools available - and point them tonix-run.sh - then, in Settings -> Build, Execution, Deployment -> Toolchains set CMake to the path to
nix-cmake.shand point all other build tools to the symlinks you've created.