Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lua*: support relative modules even when there are system modules
previously, when the lua setup hook found a system lua module, it would simply add that library to LUA_PATH, meaning the default path would no longer be used. for luajit, this bug would always occur, due to it having several inbuilt libraries such as luabitop. lua5 still passed unit tests, simply because the test environment doesn't include any system lua libaries, but the bug would still occur if lua5 was used in a derivation with a buildInput from luaPackages, since that package would be found by the envHook and overwrite the default path. now, the setup hook will use any system module paths in addition to the default path, instead of overriding it.
- Loading branch information