···1# Generic builder for lua packages
2{ lib
3, lua
4-, buildPackages
5, wrapLua
6, luarocks
7# Whether the derivation provides a lua module or not.
···14, version
1516# by default prefix `name` e.g. "lua5.2-${name}"
17-, namePrefix ? if lua.pkgs.isLuaJIT
18- then lua.name + "-"
19- else "lua" + lua.luaversion + "-"
2021# Dependencies for building the package
22, buildInputs ? []
···1# Generic builder for lua packages
2{ lib
3, lua
04, wrapLua
5, luarocks
6# Whether the derivation provides a lua module or not.
···13, version
1415# by default prefix `name` e.g. "lua5.2-${name}"
16+, namePrefix ? "${lua.pname}${lua.sourceVersion.major}.${lua.sourceVersion.minor}-"
001718# Dependencies for building the package
19, buildInputs ? []
···5 for each package in a separate file: the call to the function would
6 be almost as must code as the function itself. */
78-{ stdenv
009, lua
10-, pkgs
11-, lib
12}:
01314self:
15
···5 for each package in a separate file: the call to the function would
6 be almost as must code as the function itself. */
78+{ pkgs
9+, stdenv
10+, lib
11, lua
0012}:
13+1415self:
16