Update nginx

This commit is contained in:
Michael Raskin 2013-07-11 10:23:35 +04:00
parent 2efe295e92
commit 1800db96d7
2 changed files with 11 additions and 2 deletions

View File

@ -9,11 +9,11 @@ let
in
stdenv.mkDerivation rec {
name = "nginx-1.2.9";
name = "nginx-${meta.version}";
src = fetchurl {
url = "http://nginx.org/download/${name}.tar.gz";
sha256 = "071bs9wh1q1xmprhisyy8i4psmc2xxl6xv7plj9smxjpnxs6cj3i";
sha256 = "06ficmjiya3m8mdlyq3bgqx604h475n77qc5c502kfjijzld39dw";
};
buildInputs = [ openssl zlib pcre libxml2 libxslt ] ++ stdenv.lib.optional fullWebDAV expat;
@ -41,5 +41,6 @@ stdenv.mkDerivation rec {
description = "A reverse proxy and lightweight webserver";
maintainers = [ stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.all;
version = "1.4.1";
};
}

View File

@ -0,0 +1,8 @@
url http://nginx.org/en/download.html
version_link '.*-([0-9]+[.][0-9]*[02468]([.][0-9]+)*)[.]tar[.][a-z0-9]*$'
do_overwrite() {
ensure_hash
set_var_value version "$CURRENT_VERSION"
set_var_value sha256 "$CURRENT_HASH" 2
}