nixpkgs/pkgs/development/interpreters/lua-5
Matthieu Coudron ce505a3984
vimPlugins: use lua derivation if it exists (#178180)
Neovim plugins are now more often than not written in lua.
One advantage of the lua ecosystem over vim's is the existence of
luarocks and the rockspec format, which allows to specify a package
dependencies formally.
I would like more neovim plugins to have a formal description,
"rockspec" being the current candidate.
This MR allows to use nix lua packages as neovim plugins, so as to enjoy
every benefit that rockspecs bring:
- dependdency discovery
- ability to run test suite
- luarocks versioning
- rockspec metadata

the vim update.py script will check if an attribute with the vim plugin
pname exists in lua51Packages. If it does, it uses
buildNeovimPluginFrom2Nix on it, which modifies the luarocks config to
do an almost flat install (luarocks will install the package in the lua
folder instead of share/5.1/lua etc).
It also calls toVimPlugin on it to get all the vim plugin niceties.

The list of packages that could benefit from this is available at
https://luarocks.org/labels/neovim
but I hope it grows.
2022-06-19 14:18:16 +02:00
..
hooks vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
5.1.darwin.patch
5.2.darwin.patch
5.4.darwin.patch lua-5.4: fix build on darwin (#123028) 2021-05-14 16:38:50 -04:00
build-lua-package.nix luarocks-check-hook: init 2022-06-18 21:23:45 +02:00
CVE-2014-5461.patch
CVE-2022-28805.patch lua5_2: add patch for CVE-2022-28805 2022-05-30 21:04:16 +02:00
default.nix lua5_4: fix CVE-2022-28805 2022-05-30 21:04:17 +02:00
interpreter.nix Re-Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)" 2022-05-23 10:28:05 +02:00
lua-dso.make lua: fix linkage 2021-05-15 09:33:46 -07:00
with-packages.nix
wrap-lua.nix lua: introduced a lua lib 2021-09-12 03:03:56 +02:00
wrap.sh
wrapper.nix lua: introduced a lua lib 2021-09-12 03:03:56 +02:00
zip.patch