2011-10-31 18:26:20 +00:00
|
|
|
{ stdenv, fetchurl, openssl, zlib, pcre, libxml2, libxslt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nginx-1.1.7";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nginx.org/download/${name}.tar.gz";
|
|
|
|
sha256 = "1y0bzmrgnyqw8ghc508nipy5k46byrxc2sycqp35fdx0jmjz3h51";
|
|
|
|
};
|
|
|
|
buildInputs = [ openssl zlib pcre libxml2 libxslt ];
|
2008-11-30 09:06:53 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-http_ssl_module"
|
|
|
|
"--with-http_xslt_module"
|
|
|
|
"--with-http_sub_module"
|
|
|
|
"--with-http_dav_module"
|
|
|
|
"--with-http_gzip_static_module"
|
|
|
|
"--with-http_secure_link_module"
|
2010-04-09 12:26:54 +01:00
|
|
|
# Install destination problems
|
|
|
|
# "--with-http_perl_module"
|
2008-11-30 09:06:53 +00:00
|
|
|
];
|
|
|
|
|
2011-10-31 18:26:20 +00:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
|
|
|
|
'';
|
2008-11-30 09:06:53 +00:00
|
|
|
|
2012-02-19 21:36:34 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/sbin $out/bin
|
|
|
|
'';
|
|
|
|
|
2008-11-30 09:06:53 +00:00
|
|
|
meta = {
|
|
|
|
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
|
2009-09-15 08:05:32 +01:00
|
|
|
maintainers = [
|
2011-10-31 18:26:20 +00:00
|
|
|
stdenv.lib.maintainers.raskin
|
2009-09-15 08:05:32 +01:00
|
|
|
];
|
2011-10-31 18:26:20 +00:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2009-09-15 08:05:32 +01:00
|
|
|
all;
|
2008-11-30 09:06:53 +00:00
|
|
|
};
|
|
|
|
}
|