neovim: fix treesitter for darwin

main
Jonathan Ringer 2 years ago committed by Jonathan Ringer
parent 4ff1e8deaf
commit 91e5be0fc0
  1. 6
      pkgs/applications/editors/neovim/default.nix

@ -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=''

Loading…
Cancel
Save