Update Nginx because of a vulnerability

svn path=/nixpkgs/trunk/; revision=17146
This commit is contained in:
Michael Raskin 2009-09-15 07:05:32 +00:00
parent 37ce2ca949
commit 5c2fbcacd1
3 changed files with 25 additions and 15 deletions

View File

@ -1,20 +1,14 @@
args :
a :
let
lib = args.lib;
fetchurl = args.fetchurl;
fullDepEntry = args.fullDepEntry;
version = lib.attrByPath ["version"] "0.7.47" args;
buildInputs = with args; [
s = import ./src-for-default.nix;
buildInputs = with a; [
openssl zlib pcre libxml2 libxslt
];
in
rec {
src = fetchurl {
url = "http://sysoev.ru/nginx/nginx-${version}.tar.gz";
sha256 = "0wcb5qmvlp2b9vfz8b897gk783bwp55kprxg4gss1i9r72jdp16a";
};
src = a.fetchUrlFromSrcInfo s;
inherit (s) name;
inherit buildInputs;
configureFlags = [
"--with-http_ssl_module"
@ -25,15 +19,18 @@ rec {
"--with-http_secure_link_module"
];
preConfigure = fullDepEntry ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${args.libxml2}/include/libxml2"
preConfigure = a.fullDepEntry ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.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";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
all;
};
}

View File

@ -0,0 +1,9 @@
rec {
version="0.7.62";
name="nginx-0.7.62";
hash="0bcd6xi73xxgwz7x8skslg96cqfhy1zs8lkpxizki9s3gyghxvk0";
url="http://sysoev.ru/nginx/nginx-0.7.62.tar.gz";
advertisedUrl="http://sysoev.ru/nginx/nginx-0.7.62.tar.gz";
}

View File

@ -0,0 +1,4 @@
{
downloadPage = "http://sysoev.ru/nginx/";
baseName = "nginx";
}