mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 10:44:36 +00:00
30 lines
672 B
Nix
30 lines
672 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
luajit_openresty,
|
|
mkNginxPlugin,
|
|
}:
|
|
|
|
mkNginxPlugin (finalAttrs: {
|
|
pname = "lua-upstream";
|
|
version = "0.07";
|
|
|
|
src = fetchFromGitHub {
|
|
name = "lua-upstream";
|
|
owner = "openresty";
|
|
repo = "lua-upstream-nginx-module";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-886qZB6gTOyWW0riMgQ8osrF3Q/7DxBSHJHmqNBjDL8=";
|
|
};
|
|
|
|
buildInputs = [ luajit_openresty ];
|
|
|
|
meta = {
|
|
description = "Expose Lua API to ngx_lua for Nginx upstreams";
|
|
homepage = "https://github.com/openresty/lua-upstream-nginx-module";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ ];
|
|
broken = true; # Build against nginx fails
|
|
};
|
|
})
|