Update Nginx because of a vulnerability
svn path=/nixpkgs/trunk/; revision=17146
This commit is contained in:
parent
37ce2ca949
commit
5c2fbcacd1
@ -1,20 +1,14 @@
|
|||||||
args :
|
a :
|
||||||
let
|
let
|
||||||
lib = args.lib;
|
s = import ./src-for-default.nix;
|
||||||
fetchurl = args.fetchurl;
|
buildInputs = with a; [
|
||||||
fullDepEntry = args.fullDepEntry;
|
|
||||||
|
|
||||||
version = lib.attrByPath ["version"] "0.7.47" args;
|
|
||||||
buildInputs = with args; [
|
|
||||||
openssl zlib pcre libxml2 libxslt
|
openssl zlib pcre libxml2 libxslt
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
src = fetchurl {
|
src = a.fetchUrlFromSrcInfo s;
|
||||||
url = "http://sysoev.ru/nginx/nginx-${version}.tar.gz";
|
|
||||||
sha256 = "0wcb5qmvlp2b9vfz8b897gk783bwp55kprxg4gss1i9r72jdp16a";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
inherit (s) name;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-http_ssl_module"
|
"--with-http_ssl_module"
|
||||||
@ -25,15 +19,18 @@ rec {
|
|||||||
"--with-http_secure_link_module"
|
"--with-http_secure_link_module"
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = fullDepEntry ''
|
preConfigure = a.fullDepEntry ''
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${args.libxml2}/include/libxml2"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.libxml2}/include/libxml2"
|
||||||
'' [];
|
'' [];
|
||||||
|
|
||||||
/* doConfigure should be specified separately */
|
|
||||||
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
name = "nginx-" + version;
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
|
description = "nginx - 'engine x' - reverse proxy and lightweight webserver";
|
||||||
|
maintainers = [
|
||||||
|
a.lib.maintainers.raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
9
pkgs/servers/http/nginx/src-for-default.nix
Normal file
9
pkgs/servers/http/nginx/src-for-default.nix
Normal 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";
|
||||||
|
|
||||||
|
|
||||||
|
}
|
4
pkgs/servers/http/nginx/src-info-for-default.nix
Normal file
4
pkgs/servers/http/nginx/src-info-for-default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
downloadPage = "http://sysoev.ru/nginx/";
|
||||||
|
baseName = "nginx";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user