nginxModules.{lua,lua-upstream}: switch to luajit_openresty

This commit is contained in:
poscat 2023-10-26 10:12:37 +08:00
parent c0e2004980
commit 0c50d6ec92
No known key found for this signature in database

View File

@ -21,7 +21,7 @@
, libuuid
, libxml2
, lmdb
, luajit
, luajit_openresty
, msgpuck
, openssl
, opentracing-cpp
@ -378,7 +378,7 @@ let self = {
sha256 = "sha256-TyeTL7/0dI2wS2eACS4sI+9tu7UpDq09aemMaklkUss=";
};
inputs = [ luajit ];
inputs = [ luajit_openresty ];
preConfigure = let
# fix compilation against nginx 1.23.0
@ -387,8 +387,8 @@ let self = {
sha256 = "sha256-l7GHFNZXg+RG2SIBjYJO1JHdGUtthWnzLIqEORJUNr4=";
};
in ''
export LUAJIT_LIB="${luajit}/lib"
export LUAJIT_INC="$(realpath ${luajit}/include/luajit-*)"
export LUAJIT_LIB="${luajit_openresty}/lib"
export LUAJIT_INC="$(realpath ${luajit_openresty}/include/luajit-*)"
# make source directory writable to allow generating src/ngx_http_lua_autoconf.h
lua_src=$TMPDIR/lua-src
@ -419,7 +419,7 @@ let self = {
sha256 = "1gqccg8airli3i9103zv1zfwbjm27h235qjabfbfqk503rjamkpk";
};
inputs = [ luajit ];
inputs = [ luajit_openresty ];
allowMemoryWriteExecute = true;
meta = with lib; {