diff --git a/pkgs/development/interpreters/luajit/openresty.nix b/pkgs/development/interpreters/luajit/openresty.nix index 2321f87f524e..4316871f8f97 100644 --- a/pkgs/development/interpreters/luajit/openresty.nix +++ b/pkgs/development/interpreters/luajit/openresty.nix @@ -6,13 +6,13 @@ }: callPackage ./default.nix rec { - version = "2.1-20251030"; + version = "2.1-20260724"; src = fetchFromGitHub { owner = "openresty"; repo = "luajit2"; rev = "v${version}"; - hash = "sha256-SICmM+/dvp/36UAWAH0l7D938iFDimnoKBOjlOodrCY="; + hash = "sha256-cvy9FgHWFuacCFl7/conLwNuMgaol1LnIUiqcnXy9H8="; }; extraMeta = { diff --git a/pkgs/servers/http/nginx/modules/lua/package.nix b/pkgs/servers/http/nginx/modules/lua/package.nix index f8f45586e4ab..aa191c8f85b5 100644 --- a/pkgs/servers/http/nginx/modules/lua/package.nix +++ b/pkgs/servers/http/nginx/modules/lua/package.nix @@ -3,10 +3,13 @@ lib, luajit_openresty, mkNginxPlugin, + nixosTests, }: mkNginxPlugin (finalAttrs: { pname = "lua"; + # The version needs to fit to lua-resty-core. + # Adapt both. version = "0.10.31"; src = fetchFromGitHub { @@ -25,6 +28,10 @@ mkNginxPlugin (finalAttrs: { allowMemoryWriteExecute = true; + passthru.tests = { + inherit (nixosTests) nginx-lua; + }; + meta = { description = "Embed the Power of Lua"; homepage = "https://github.com/openresty/lua-nginx-module"; diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 873e872640ab..44464049bb85 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -165,13 +165,14 @@ rec { { fetchFromGitHub }: buildLuaPackage rec { pname = "lua-resty-core"; - version = "0.1.32"; + # The version needs to fit to nginxModules.lua + version = "0.1.34rc3"; src = fetchFromGitHub { owner = "openresty"; repo = "lua-resty-core"; rev = "v${version}"; - sha256 = "sha256-ba/ahIl8BDfyXIbaN6zVCh3UwY6JbAqqZEpXktOfeYo="; + sha256 = "sha256-+rtbaHEqKSvaba+zZwRUnUsdu3Jndi8OVGUtFC55Fts="; }; propagatedBuildInputs = [ lua-resty-lrucache ];