C/C++
Build with Flox
Not only can you develop your software with Flox, but you can build it as well. See the builds concept page for more details.
Manifest builds
Autotools
Since autotools isn't specific to C, this example will also work for any project using autotools.
Since the output of the build must be copied to the $out directory, you must set the install prefix to $out.
CMake
Doing a CMake build looks much the same as autotools.
Nix expression builds
To build a project using clang: