diff options
| author | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-02-11 19:36:56 +0100 |
|---|---|---|
| committer | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-02-17 15:58:13 +0100 |
| commit | 50e877ed8982f52de379ed76c3ab20850e1edff0 (patch) | |
| tree | 1d8ea10e3a3e6b82600a8466b61b5f910f2beebb /doc/languages-frameworks/lua.section.md | |
| parent | Merge pull request #282566 from fabaff/argcomplete-bump (diff) | |
| download | nixpkgs-50e877ed8982f52de379ed76c3ab20850e1edff0.tar.gz | |
buildLuarocksPackage: accept structured luarocks config
There is an arbitrary mapping being done right now between
nixpkgs lua infrastructre and luarocks config schema.
This is confusing if you use lua so let's make it possible to use the
lua names in the nixpkgs, thanks to the lib.generators.toLua convertor.
The only nixpkgs thing to remember should be to put the config into `luarocksConfig`
`buildLuarocksPackage.extraVariables` should become `buildLuarocksPackage.luarocksConfig.variables`
Diffstat (limited to 'doc/languages-frameworks/lua.section.md')
| -rw-r--r-- | doc/languages-frameworks/lua.section.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/languages-frameworks/lua.section.md b/doc/languages-frameworks/lua.section.md index 310ea88a86d5..23c40409eaa0 100644 --- a/doc/languages-frameworks/lua.section.md +++ b/doc/languages-frameworks/lua.section.md @@ -215,6 +215,11 @@ install the package environment variable and add dependent libraries to script's `LUA_PATH` and `LUA_CPATH`. +It accepts as arguments: + +* 'luarocksConfig': a nix value that directly maps to the luarocks config used during + the installation + By default `meta.platforms` is set to the same value as the interpreter unless overridden otherwise. #### `buildLuaApplication` function {#buildluaapplication-function} |
