mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
33 lines
699 B
Nix
33 lines
699 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
luajit_openresty,
|
|
mkNginxPlugin,
|
|
}:
|
|
|
|
mkNginxPlugin (finalAttrs: {
|
|
pname = "lua";
|
|
version = "0.10.31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openresty";
|
|
repo = "lua-nginx-module";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-pS3Ce8duBtD1qb/E3NNnkuNU/39D4S9dJlGIfd9hkkc=";
|
|
};
|
|
|
|
buildInputs = [ luajit_openresty ];
|
|
|
|
preConfigure = ''
|
|
export LUAJIT_LIB="${luajit_openresty}/lib"
|
|
export LUAJIT_INC="$(realpath ${luajit_openresty}/include/luajit-*)"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Embed the Power of Lua";
|
|
homepage = "https://github.com/openresty/lua-nginx-module";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ ];
|
|
};
|
|
})
|