doc: updated lua doc

mentions lua 5.4 + fixed an error

+3 -5
+3 -5
doc/languages-frameworks/lua.section.md
··· 139 [luarocks2nix](https://github.com/nix-community/luarocks) is a tool capable of generating nix derivations from both rockspec and src.rock (and favors the src.rock). 140 The automation only goes so far though and some packages need to be customized. 141 These customizations go in `pkgs/development/lua-modules/overrides.nix`. 142 - For instance if the rockspec defines `external_dependencies`, these need to be manually added in its rockspec file then it won't work. 143 144 You can try converting luarocks packages to nix packages with the command `nix-shell -p luarocks-nix` and then `luarocks nix PKG_NAME`. 145 - Nix rely on luarocks to install lua packages, basically it runs: 146 - `luarocks make --deps-mode=none --tree $out` 147 148 #### Packaging a library manually {#packaging-a-library-manually} 149 ··· 161 162 ### Lua interpreters {#lua-interpreters} 163 164 - Versions 5.1, 5.2 and 5.3 of the lua interpreter are available as 165 - respectively `lua5_1`, `lua5_2` and `lua5_3`. Luajit is available too. 166 The Nix expressions for the interpreters can be found in `pkgs/development/interpreters/lua-5`. 167 168 #### Attributes on lua interpreters packages {#attributes-on-lua-interpreters-packages}
··· 139 [luarocks2nix](https://github.com/nix-community/luarocks) is a tool capable of generating nix derivations from both rockspec and src.rock (and favors the src.rock). 140 The automation only goes so far though and some packages need to be customized. 141 These customizations go in `pkgs/development/lua-modules/overrides.nix`. 142 + For instance if the rockspec defines `external_dependencies`, these need to be manually added to the overrides.nix. 143 144 You can try converting luarocks packages to nix packages with the command `nix-shell -p luarocks-nix` and then `luarocks nix PKG_NAME`. 145 146 #### Packaging a library manually {#packaging-a-library-manually} 147 ··· 159 160 ### Lua interpreters {#lua-interpreters} 161 162 + Versions 5.1, 5.2, 5.3 and 5.4 of the lua interpreter are available as 163 + respectively `lua5_1`, `lua5_2`, `lua5_3` and `lua5_4`. Luajit is available too. 164 The Nix expressions for the interpreters can be found in `pkgs/development/interpreters/lua-5`. 165 166 #### Attributes on lua interpreters packages {#attributes-on-lua-interpreters-packages}