2011-10-31 19:26:20 +01:00
|
|
|
{ stdenv, fetchurl, openssl, zlib, pcre, libxml2, libxslt }:
|
2012-10-09 20:20:44 +02:00
|
|
|
|
2011-10-31 19:26:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-10-09 20:20:44 +02:00
|
|
|
name = "nginx-1.2.4";
|
|
|
|
|
2011-10-31 19:26:20 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nginx.org/download/${name}.tar.gz";
|
2012-10-09 20:20:44 +02:00
|
|
|
sha256 = "0hvcv4lgfcrsl40azkd3rxhf73l05jzzgflclpkdvjd95xgw51y5";
|
2011-10-31 19:26:20 +01:00
|
|
|
};
|
2012-10-09 20:20:44 +02:00
|
|
|
|
2011-10-31 19:26:20 +01:00
|
|
|
buildInputs = [ openssl zlib pcre libxml2 libxslt ];
|
2008-11-30 10:06:53 +01: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 13:26:54 +02:00
|
|
|
# Install destination problems
|
2012-10-09 20:20:44 +02:00
|
|
|
# "--with-http_perl_module"
|
2008-11-30 10:06:53 +01:00
|
|
|
];
|
|
|
|
|
2011-10-31 19:26:20 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
|
|
|
|
'';
|
2008-11-30 10:06:53 +01:00
|
|
|
|
2012-02-19 22:36:34 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/sbin $out/bin
|
|
|
|
'';
|
|
|
|
|
2008-11-30 10:06:53 +01:00
|
|
|
meta = {
|
2012-10-09 20:20:44 +02:00
|
|
|
description = "A reverse proxy and lightweight webserver";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2008-11-30 10:06:53 +01:00
|
|
|
};
|
|
|
|
}
|