mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
1a8edfe192
This commit adds basic support for tree-sitter in the emacs build, such that (if the user opts into tree-sitter support), tree-sitter will be enabled and binary library files for tree-sitter can be included in the `lib` directory of packages passed to `emacsWithPackages`. The libraries will be aggregated and included in treesit-extra-load-path. The previous pattern for this in the community was to add tree-sitter libaries by patching emacs's `RUNPATH` with `patchelf` in a post-fixup phase. However, this has the substantial drawback that two different emacs installations with different lists of available tree-sitter libraries must be entirely separate builds. By supplying the tree-sitter libraries in the wrapping layer of `emacsWithpackages`, it becomes possible to share a single, more-cacheable "core emacs". This support defaults to "on" only in emacs 29 and up, since previous versions do not support tree-sitter out of the box. |
||
---|---|---|
.. | ||
buffer.nix | ||
elpa2nix.el | ||
elpa.nix | ||
emacs-funcs.sh | ||
generic.nix | ||
melpa2nix.el | ||
melpa.nix | ||
mk-wrapper-subdirs.el | ||
package-build-dont-use-mtime.patch | ||
trivial.nix | ||
wrapper.nix | ||
wrapper.sh |