nixpkgs/pkgs/servers/http/nginx/default.nix
Michael Raskin 5c2fbcacd1 Update Nginx because of a vulnerability
svn path=/nixpkgs/trunk/; revision=17146
2009-09-15 07:05:32 +00:00

37 lines
826 B
Nix

a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
openssl zlib pcre libxml2 libxslt
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
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"
];
preConfigure = a.fullDepEntry ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libxml2}/include/libxml2"
'' [];
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
meta = {
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
all;
};
}