Merge pull request #125100 from hurricanehrndz/fix/tree-sitter-on-darwin

treesitter: include CXX headers when compiling with clang Darwin

Changed files
+3
pkgs
development
tools
parsing
tree-sitter
+3
pkgs/development/tools/parsing/tree-sitter/grammar.nix
···
{ stdenv
, tree-sitter
+
, libcxx
+
, lib
}:
# Build a parser grammar and put the resulting shared object in `$out/parser`
···
"${source}/${location}"
;
+
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
buildInputs = [ tree-sitter ];
dontUnpack = true;