openresty: 1.9.3.1 -> 1.13.6.1 (#36289)
This commit is contained in:
parent
d44dd05af9
commit
75d4499e69
|
@ -1,25 +1,30 @@
|
||||||
{ stdenv, fetchurl, fetchgit, openssl, zlib, pcre, libxml2, libxslt, gd, geoip
|
{ stdenv, fetchurl, fetchgit, openssl, zlib, pcre, postgresql, libxml2, libxslt,
|
||||||
, perl }:
|
gd, geoip, perl }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "openresty-${version}";
|
name = "openresty-${version}";
|
||||||
version = "1.9.3.1";
|
version = "1.13.6.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://openresty.org/download/ngx_openresty-${version}.tar.gz";
|
url = "http://openresty.org/download/openresty-${version}.tar.gz";
|
||||||
sha256 = "1fw8yxjndf5gsk44l4bsixm270fxv7f5cdiwzq9ps6j3hhgx5kyv";
|
sha256 = "0sv93nw1j597mdpnibmgaa3nnghdk0z6k27vavm8w2c1z9n6w96i";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip perl ];
|
buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip postgresql ];
|
||||||
|
nativeBuildInputs = [ perl ];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = ["-I${libxml2.dev}/include/libxml2"];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
patchShebangs .
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-pcre-jit"
|
"--with-pcre-jit"
|
||||||
"--with-http_ssl_module"
|
"--with-http_ssl_module"
|
||||||
"--with-http_spdy_module"
|
"--with-http_v2_module"
|
||||||
"--with-http_realip_module"
|
"--with-http_realip_module"
|
||||||
"--with-http_addition_module"
|
"--with-http_addition_module"
|
||||||
"--with-http_xslt_module"
|
"--with-http_xslt_module"
|
||||||
|
@ -36,26 +41,22 @@ stdenv.mkDerivation rec {
|
||||||
"--with-http_secure_link_module"
|
"--with-http_secure_link_module"
|
||||||
"--with-http_degradation_module"
|
"--with-http_degradation_module"
|
||||||
"--with-http_stub_status_module"
|
"--with-http_stub_status_module"
|
||||||
|
"--with-http_postgres_module"
|
||||||
"--with-ipv6"
|
"--with-ipv6"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
enableParallelBuilding = true;
|
||||||
mv $out/nginx/sbin/nginx $out/bin
|
|
||||||
mv $out/luajit/bin/luajit-2.1.0-alpha $out/bin/luajit-openresty
|
|
||||||
ln -s $out/bin/nginx $out/bin/openresty
|
|
||||||
'';
|
|
||||||
|
|
||||||
preConfigure = ''
|
postInstall = ''
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2.dev}/include/libxml2 $additionalFlags"
|
ln -s $out/luajit/bin/luajit-2.1.0-beta3 $out/bin/luajit-openresty
|
||||||
export PATH="$PATH:${stdenv.cc.libc.bin}/bin"
|
ln -s $out/nginx/sbin/nginx $out/bin/nginx
|
||||||
patchShebangs .
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A fast web application server built on Nginx";
|
description = "A fast web application server built on Nginx";
|
||||||
homepage = http://openresty.org;
|
homepage = http://openresty.org;
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ thoughtpolice ];
|
maintainers = with maintainers; [ thoughtpolice lblasc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue