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

treesitter: include CXX headers when compiling with clang Darwin
master
Mario Rodas 2021-06-06 05:23:48 -05:00 committed by GitHub
commit be281dd512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
{ stdenv
, tree-sitter
, libcxx
, lib
}:
# Build a parser grammar and put the resulting shared object in `$out/parser`
@ -27,6 +29,7 @@ stdenv.mkDerivation {
"${source}/${location}"
;
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
buildInputs = [ tree-sitter ];
dontUnpack = true;