diff options
| author | Mario Rodas <marsam@users.noreply.github.com> | 2021-06-06 08:46:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-06 08:46:20 -0500 |
| commit | 81deb02e789f5ddae610f7ad7b957b1e42f133bb (patch) | |
| tree | f92194b75f0b3d201c8eae03769a96515ba283bd | |
| parent | Merge pull request #125806 from NixOS/backport-125266-to-release-21.05 (diff) | |
| parent | tree-sitter: explicitly incl CXX headers on Darwin (diff) | |
| download | nixpkgs-81deb02e789f5ddae610f7ad7b957b1e42f133bb.tar.gz | |
Merge pull request #125933 from NixOS/backport-125100-to-release-21.05
[Backport release-21.05] treesitter: include CXX headers compiling with clang Darwin
| -rw-r--r-- | pkgs/development/tools/parsing/tree-sitter/grammar.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/grammar.nix b/pkgs/development/tools/parsing/tree-sitter/grammar.nix index 5ca381e6d2ff..93e1cb3804fb 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammar.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammar.nix @@ -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; |
