When attempting to use any tree-sitter grammar like so:
nix-shell -p pkgs.tree-sitter.builtGrammars.tree-sitter-c
I get the following errors:
building '/nix/store/j8llfsdl9vbvh8dxvnmzqfji5bg5f7ns-tree-sitter-c-grammar-0.20.0.drv'...
patching sources
building
installing
post-installation fixup
fatal error: strip: no files specified
error: builder for '/nix/store/j8llfsdl9vbvh8dxvnmzqfji5bg5f7ns-tree-sitter-c-grammar-0.20.0.drv' failed with exit code 1;
last 5 log lines:
> patching sources
> building
> installing
> post-installation fixup
> fatal error: strip: no files specified
For full logs, run 'nix log /nix/store/j8llfsdl9vbvh8dxvnmzqfji5bg5f7ns-tree-sitter-c-grammar-0.20.0.drv'.
This occurs with any tree sitter grammar, but only on MacOS. I’m fairly new to Nix, so I’m not entirely sure why this is happening. I did upgrade to Monterey a few days ago, and I’m pretty sure it was working fine prior to that. Did the upgrade break something, maybe with how debug symbols are stripped?