diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2022-01-25 12:59:13 -0800 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-01-25 16:22:05 -0800 |
commit | 91e5be0fc0eb4e1f1d95a16de867d30a7551b295 (patch) | |
tree | a743b4e695835787dd18f77d32c9947ccb592ce3 /pkgs/applications/editors/neovim | |
parent | 4ff1e8deafb2abc250adcdbf57977e0266a940cd (diff) | |
download | nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar.gz nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar.bz2 nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar.lz nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar.xz nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.tar.zst nixlib-91e5be0fc0eb4e1f1d95a16de867d30a7551b295.zip |
neovim: fix treesitter for darwin
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r-- | pkgs/applications/editors/neovim/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 7cec1025611f..03cc0b35b8d3 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/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='' |