diff options
author | Carlos Hernandez <chernand@yelp.com> | 2021-05-31 09:20:22 -0600 |
---|---|---|
committer | Carlos Hernandez <chernand@yelp.com> | 2021-06-04 11:31:42 -0600 |
commit | 99b351b4bde2d9697b4e9abaa54458dcff1288d1 (patch) | |
tree | 5117231db810dbf4fe27203cdad1b96ac7ca07f0 /pkgs/development/tools/parsing/tree-sitter | |
parent | 6d2a162393757e1cc09ad64c3c9553fcdbc54e27 (diff) | |
download | nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar.gz nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar.bz2 nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar.lz nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar.xz nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.tar.zst nixpkgs-99b351b4bde2d9697b4e9abaa54458dcff1288d1.zip |
tree-sitter: explicitly incl CXX headers on Darwin
clang needs to find headers + libraries for compiling with libc++. On Darwin we will include CXX headers when compiling C. This closes #124396
Diffstat (limited to 'pkgs/development/tools/parsing/tree-sitter')
-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 5ca381e6d2f..93e1cb3804f 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; |