Age | Commit message (Collapse) | Author | Files | Lines |
|
fixes #220199
This makes `luarocksMoveDataHook` run before `vimPluginGenTags` since it
is added first to `preFixupHooks`.
|
|
Fixes NixOS#218227
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* turbovnc: add changelog url
* memray: add changelog url
* ddcutil: add changelog url
* jc: add changelog url
* zed: add changelog url
* lua: use https homepage
* sil: use https url
* the-powder-toy: use https homepage
* tldr: add changelog url
* openjpeg: add changelog url
* scheme48: use https homepage
* bubblewrap: set meta.mainProgram
* zbar: set meta.mainProgram
* qpdf: add changelog url
* nvtop: set meta.mainProgram
* squashfs: add meta.mainProgram
|
|
|
|
Test with:
nix-build -A lua.tests pass
Tests are very limited for now, goal is mostly to put the infra into
place and enrich the tests when dealing with lua issues.
add luaPath/luaCpath as passthrough
makes it easier to generate LUA_PATH/LUA_CPATH
|
|
right now the src is ignored in:
```
lush-nvim = buildNeovimPlugin {
pname = "lush.nvim";
version = "2022-08-09";
src = fetchFromGitHub {
owner = "rktjmp";
repo = "lush.nvim";
rev = "6b9f399245de7bea8dac2c3bf91096ffdedfcbb7";
sha256 = "0rb77rwmbm438bmbjfk5hwrrcn5sihsa1413bdpc27rw3rrn8v8z";
};
meta.homepage = "https://github.com/rktjmp/lush.nvim/";
};
```
which is very confusing. With this PR, we correctly override the src and
the version of the package. We introduce a rockspecVersion attribute of
lua package to be able to still find the rockspec when the
"version" field needs to be different than "rockspecVersion".
|
|
|
|
CVE-2021-44647, CVE-2021-44964, CVE-2021-43519
|
|
|
|
|
|
and move externalDeps' back to buildInputs
both accidentally caused in https://github.com/NixOS/nixpkgs/pull/178158/files
|
|
|
|
|
|
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.
|
|
|
|
The hook is added to buildLuarocksPackage when doCheck is set to true.
|
|
|
|
Derived from https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa
|
|
This reverts commit 9f4060c55289472edcd6a47b92cb3dc98380cbd8.
After the previous merge commit this should work now.
|
|
This reverts commit 92f4c6ed823ce10c484daa6582a908c5ae9ad61b.
On aarch64-darwin this completely broke lua instead of improving it;
let's revert at least until that's resolved.
https://github.com/NixOS/nixpkgs/pull/172749#issuecomment-1133759233
|
|
|
|
|
|
- luarocks-nix: bumped to pass args too, `package_X = callPackage ...`.
It allows to remove the annoying `with self`.
This new version disables tests (because broken) and now emits derivation
with a callPackage in front.
- replaced X.override with lib.overrideLuarocks, it should be used
whenever buildInputs/extraVariables is changed since it impacts the
generated luarocks config.
Once structured attributes are in, it will be easier to have the
luarocks config generated by a hook and we probably will be able to
replace all overrideLuarocks by overrideAttrs.
|
|
since 5.4 linux plat no longer builds with readline support
Closes https://github.com/NixOS/nixpkgs/issues/141701
|
|
- moved lua hooks to a specific folder as I foresee to add more
- moved generateLuarocksConfig to lib
- fix getLuaPath
- removed the useless rockspecDir
|
|
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
|
|
Goal is to improve separation between packages and utilities.
Can help with autocompletion/navigate nixpkgs faster.
Also it will help standardize how LUA_PATH is exported across packages,
so that one can more easily make lua changes across nixpkgs (for
instance changing where lua modules are installed).
|
|
|
|
|
|
- fix std._debug build
- fixed std-normalize
- pinned stdlib since the git version causes issues with awesome
cleanup
|
|
|
|
to handle derivations that are not registered or updated on
luarocks.org, for instance neovim plugins.
|
|
This reverts commit 0b467dfa956485833713374d015bc2a8dcbd9133.
|
|
|
|
I Think this is not necessary anymore since 34f8d7e15a3ca5762c84f867f70773674b002cb2
|
|
|
|
|
|
This fixes a couple of problems:
* Lua 5.1 doesn't have SYSLIBS, so wasn't being linked with any
libraries.
* SYSLIBS doesn't include -lm, so we had to add that manually to
pkgconfig. LIBS includes -lm, so we don't need that hack any more.
|
|
This patch was removed in 34f8d7e15a3 ("lua: one dso patch to rule
them all"), and the reference to it in lua5_4 was removed at the time,
but it seems to have found its way back somehow (probably through a
merge?).
(cherry picked from commit 5b278213a2bcf07c3dc2f71305100bba9010e8f5)
|