neovim: fix treesitter for darwin

This commit is contained in:
Jonathan Ringer
2022-01-25 16:22:05 -08:00
committed by Jonathan Ringer
parent 4ff1e8deaf
commit 91e5be0fc0
+4 -2
View File
@@ -113,8 +113,10 @@ in
substituteInPlace src/nvim/CMakeLists.txt --replace " util" ""
'';
# For treesitter plugins, libstdc++.so.6 will be needed
NIX_LDFLAGS = [ "-lstdc++"];
# For treesitter plugins, libstdc++.so.6, or equivalent will be needed
NIX_LDFLAGS =
lib.optionals stdenv.cc.isGNU [ "-lstdc++"]
++ lib.optionals stdenv.cc.isClang [ "-lc++" ];
# export PATH=$PWD/build/bin:${PATH}
shellHook=''