C++ code coverage with meson failing

I’m trying to add some code coverage metrics to a project of mine that uses the meson build system but it keeps giving errors.

It can’t seem to find the boost headers, has anyone set anything like this up previously that can help.

Failing CI run: Move the gcovr dep to nativeBuildInputs · tmayoff/wren@b45f4ac · GitHub

meson’s discussions: Code coverage 'permission denied' Nix devShell · mesonbuild/meson · Discussion #13856 · GitHub

This is kind of solved, the details are in the linked Github discussion