2008-11-30 10:06:53 +01:00
|
|
|
args :
|
|
|
|
let
|
|
|
|
lib = args.lib;
|
|
|
|
fetchurl = args.fetchurl;
|
2009-05-20 01:25:58 +02:00
|
|
|
fullDepEntry = args.fullDepEntry;
|
2008-11-30 10:06:53 +01:00
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
version = lib.attrByPath ["version"] "0.7.47" args;
|
2008-11-30 10:06:53 +01:00
|
|
|
buildInputs = with args; [
|
|
|
|
openssl zlib pcre libxml2 libxslt
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sysoev.ru/nginx/nginx-${version}.tar.gz";
|
2009-04-06 10:04:57 +02:00
|
|
|
sha256 = "0wcb5qmvlp2b9vfz8b897gk783bwp55kprxg4gss1i9r72jdp16a";
|
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"
|
|
|
|
];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preConfigure = fullDepEntry ''
|
2008-11-30 10:06:53 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${args.libxml2}/include/libxml2"
|
|
|
|
'' [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
|
|
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
name = "nginx-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
|
|
|
|
};
|
|
|
|
}
|