Merge pull request #125933 from NixOS/backport-125100-to-release-21.05

[Backport release-21.05] treesitter: include CXX headers compiling with clang Darwin
This commit is contained in:
Mario Rodas 2021-06-06 08:46:20 -05:00 committed by GitHub
commit 81deb02e78
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 { stdenv
, tree-sitter , tree-sitter
, libcxx
, lib
}: }:
# Build a parser grammar and put the resulting shared object in `$out/parser` # Build a parser grammar and put the resulting shared object in `$out/parser`
@ -27,6 +29,7 @@ stdenv.mkDerivation {
"${source}/${location}" "${source}/${location}"
; ;
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
buildInputs = [ tree-sitter ]; buildInputs = [ tree-sitter ];
dontUnpack = true; dontUnpack = true;