2009-09-15 09:05:32 +02:00
|
|
|
a :
|
2008-11-30 10:06:53 +01:00
|
|
|
let
|
2009-09-15 09:05:32 +02:00
|
|
|
s = import ./src-for-default.nix;
|
|
|
|
buildInputs = with a; [
|
2008-11-30 10:06:53 +01:00
|
|
|
openssl zlib pcre libxml2 libxslt
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
2009-09-15 09:05:32 +02:00
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
2008-11-30 10:06:53 +01:00
|
|
|
|
2009-09-15 09:05:32 +02:00
|
|
|
inherit (s) name;
|
2008-11-30 10:06:53 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
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
|
|
|
|
# "--with-http_perl_module"
|
2008-11-30 10:06:53 +01:00
|
|
|
];
|
|
|
|
|
2009-09-15 09:05:32 +02:00
|
|
|
preConfigure = a.fullDepEntry ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libxml2}/include/libxml2"
|
2008-11-30 10:06:53 +01:00
|
|
|
'' [];
|
|
|
|
|
|
|
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
|
2009-09-15 09:05:32 +02:00
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
all;
|
2008-11-30 10:06:53 +01:00
|
|
|
};
|
|
|
|
}
|