Not related to clang-tidy but: I think clang-tools should be overriden with Clangd issues on nixos: missing headers - #9 by gabyx
# C++
# Clangd from clang-tools must come first.
(hiPrio clang-tools.override {
llvmPackages = llvmPackages_16;
enableLibcxx = false;
})
# Do not use the clangd from this package as it does not work correctly with
# stdlib headers.
llvmPackages_16.libstdcxxClang
but I guess since you overwrite stdenv in mkShell I guess pkgs.clang-tools takes that, not sure. I guess it does not.
I think clang-tidy has the same troubles as clangd… I also need this somehow fixed…