nixpkgs/pkgs/servers/http/nginx/default.nix
Rob Vermaas edbae5f6c3 update nginx to 1.1.7
svn path=/nixpkgs/trunk/; revision=30144
2011-10-31 18:26:20 +00:00

34 lines
926 B
Nix

{ 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 ];
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"
# Install destination problems
# "--with-http_perl_module"
];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
'';
meta = {
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
maintainers = [
stdenv.lib.maintainers.raskin
];
platforms = with stdenv.lib.platforms;
all;
};
}