Files
nixpkgs/pkgs/servers/http/nginx/modules/lua/package.nix
Maximilian Bosch ea6542782d nixos/nginx: generally turn off MemoryDenyWriteExecute
See #384302 for the issues associated with it.
2026-08-07 21:01:30 +02:00

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 = [ ];
};
})