An example with nix: How to automatically and reproducibly build and integration-test a database C++ app in 60 different build-configurations (library exchange/compiler exchange/static-nonstatic)
Why do you think that https://github.com/sanmak/dockerfile-samples is a good alternative to nix_cmake_example