about summary refs log tree commit diff
path: root/pkgs/development/interpreters/lua-5
AgeCommit message (Collapse)AuthorFilesLines
2023-03-10lua-rocks-move-data: fix missing doc tags on luaPackages neovim pluginsLeixB1-1/+1
fixes #220199 This makes `luarocksMoveDataHook` run before `vimPluginGenTags` since it is added first to `preFixupHooks`.
2023-02-28lua_5_3_compat, lua_5_4_compat: set LUA_COMPAT_5_x as LUA_COMPAT_ALL was removedLuna Nova1-1/+5
Fixes NixOS#218227
2023-02-07treewide: makeSetupHook deps -> propagatedBuildInputsArtturin2-3/+3
2023-02-07makeSetupHook: support depsTargetTargetPropagatedArtturin1-1/+1
2023-01-21Merge branch 'nativeCheckInputs' into staging-nativeCheckInputsGuillaume Girol1-3/+3
2023-01-21buildLuaPackage: adapt to native check inputsGuillaume Girol1-3/+3
2023-01-19treewide: add names to all setup hooksAlyssa Ross1-1/+1
2023-01-07Merge pull request #207652 from Artturin/splicenixfmtArtturi1-4/+2
2022-12-26luajit_openresty: init at 2.1-20220915Sandro Jäckel1-0/+4
2022-12-25Merge pull request #206807 from SuperSandro2000/lua-sourceVersionSandro3-15/+14
2022-12-25treewide: use splicing convenience functionsArtturin1-4/+2
2022-12-22interpreters/lua: replace sourceVersion with lib.versionsSandro Jäckel3-15/+14
2022-12-17treewide: fix typosfigsoda1-2/+2
2022-11-09treewide: more meta changelog urls and mainPrograms (#200062)Daniel Nagy1-1/+1
* 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
2022-10-14Merge master into staging-nextgithub-actions[bot]4-0/+70
2022-10-14lua: test the interpreterMatthieu Coudron4-0/+70
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
2022-10-13vimPlugins: make usage of luaPackages less confusingMatthieu Coudron2-22/+22
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".
2022-10-13Merge branch 'master' into stagingVladimír Čunát1-2/+2
2022-10-11lua: 5.4.3 -> 5.4.4Yorick van Pelt1-2/+2
CVE-2021-44647, CVE-2021-44964, CVE-2021-43519
2022-10-09lua: add back Darwin makeBinaryWrapper fixStéphan Kochen1-0/+1
2022-08-26luaPackages: copy passthruFun from pythonArtturin3-26/+114
2022-08-26build-lua-package: remove unnecessary adding of buildInputs to nativeBuildInputsArtturin1-5/+5
and move externalDeps' back to buildInputs both accidentally caused in https://github.com/NixOS/nixpkgs/pull/178158/files
2022-08-26lua-packages: try splicingArtturin2-8/+13
2022-07-23lua5_4: add patch for CVE-2022-33099Robert Scott1-0/+7
2022-06-19vimPlugins: use lua derivation if it exists (#178180)Matthieu Coudron2-0/+23
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-19Merge master into staging-nextgithub-actions[bot]3-5/+42
2022-06-18luarocks-check-hook: initMatthieu Coudron3-5/+42
The hook is added to buildLuarocksPackage when doCheck is set to true.
2022-05-30lua5_4: fix CVE-2022-28805Robin Gloster1-1/+11
2022-05-30lua5_2: add patch for CVE-2022-28805Robin Gloster2-1/+13
Derived from https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa
2022-05-23Re-Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)"Vladimír Čunát2-1/+6
This reverts commit 9f4060c55289472edcd6a47b92cb3dc98380cbd8. After the previous merge commit this should work now.
2022-05-22Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)"Vladimír Čunát2-6/+1
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
2022-05-17lua: fix on darwin by using makeBinaryWrapper (#172749)Jeremy Wall2-1/+6
2021-11-08lua/setup-hook: remove empty hookJonathan Ringer1-0/+0
2021-10-18luaPackages: updateMatthieu Coudron1-10/+11
- 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.
2021-10-16lua: add conditional to use linux-readline as the plat on 5.4+Artturin1-1/+2
since 5.4 linux plat no longer builds with readline support Closes https://github.com/NixOS/nixpkgs/issues/141701
2021-09-27lua: create a folder for hooksMatthieu Coudron4-67/+38
- moved lua hooks to a specific folder as I foresee to add more - moved generateLuarocksConfig to lib - fix getLuaPath - removed the useless rockspecDir
2021-09-12Apply suggestions from code reviewMatthieu Coudron1-1/+2
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-09-12lua: introduced a lua libMatthieu Coudron4-21/+39
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).
2021-09-05Merge #135672: LuaJIT: bump, fix issue with pcallVladimír Čunát1-5/+0
2021-08-31buildLuarocksPackage: cleanupMatthieu Coudron1-7/+3
2021-08-31lua: restore knownRockspec and lgiMatthieu Coudron1-22/+6
- fix std._debug build - fixed std-normalize - pinned stdlib since the git version causes issues with awesome cleanup
2021-08-31luaPackages: updateMatthieu Coudron1-11/+13
2021-08-29update-luarocks-packages: support in-repo rockspecsMatthieu Coudron1-12/+26
to handle derivations that are not registered or updated on luarocks.org, for instance neovim plugins.
2021-08-25Revert "luajit_openresty: init"Luka Blaskovic1-5/+0
This reverts commit 0b467dfa956485833713374d015bc2a8dcbd9133.
2021-08-19luajit_openresty: initGregory Anders1-0/+5
2021-06-22lua: remove unecessary postBuild for lua 5.3Marco A L Barbosa1-4/+0
I Think this is not necessary anymore since 34f8d7e15a3ca5762c84f867f70773674b002cb2
2021-06-22lua: support static only buildsMarco A L Barbosa1-2/+8
2021-05-31lua5_4: 5.4.2 -> 5.4.3Janne Heß1-2/+2
2021-05-15lua: fix linkageAlyssa Ross2-2/+2
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.
2021-05-15lua5_4: fix evalAlyssa Ross1-5/+1
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)