doc/lua: mention the patching of interpreters

explain why they are patched in nixpkgs.
This commit is contained in:
Matthieu Coudron 2024-03-06 23:32:41 +01:00
parent 0c9417100f
commit 545c14d5e4

View file

@ -17,6 +17,9 @@ The main package set contains aliases to these package sets, e.g.
`luaPackages` refers to `lua5_1.pkgs` and `lua52Packages` to `luaPackages` refers to `lua5_1.pkgs` and `lua52Packages` to
`lua5_2.pkgs`. `lua5_2.pkgs`.
Note that nixpkgs patches the non-luajit interpreters to avoid referring to
`/usr` and have `;;` (a [placeholder](https://www.lua.org/manual/5.1/manual.html#pdf-package.path) replaced with the default LUA_PATH) work correctly.
### Installing Lua and packages {#installing-lua-and-packages} ### Installing Lua and packages {#installing-lua-and-packages}
#### Lua environment defined in separate `.nix` file {#lua-environment-defined-in-separate-.nix-file} #### Lua environment defined in separate `.nix` file {#lua-environment-defined-in-separate-.nix-file}