PRs ready for review _

two PRs: first stops us from adding duplicate flags to NIX_CFLAGS_COMPILE. Second one is my attempt at allowing consistent generation of compile_commands.json files using nix for C/C++ projects.

https://github.com/NixOS/nixpkgs/pull/191724

https://github.com/NixOS/nixpkgs/pull/192694