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
.nix
utility directory in your project directory. - put the below
nix-run.sh
andnix-cmake.sh
in the.nix
directory. - in the
.nix
directory 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.sh
and point all other build tools to the symlinks you've created.