That's a mouthful for 14 lines of native development that can generate a dev container using https://devenv.sh
$ cat devenv.nix
{ pkgs, ... }: {
languages.c.enable = true;
packages = [ pkgs.ceedling pkgs.cmake ];
enterShell = ''
cmake --version
'';
pre-commit.hooks = {
clang-format.enable = true;
clang-tidy.enable = true;
};
}$ devenv shell
(Note that pkgs.ceedling has been recently added and will only hit the cache in 6-12h).