Added nginx - lightweight http server
svn path=/nixpkgs/trunk/; revision=13518
This commit is contained in:
parent
ab0f8f2bb4
commit
8c90c64e94
39
pkgs/servers/http/nginx/default.nix
Normal file
39
pkgs/servers/http/nginx/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
args :
|
||||||
|
let
|
||||||
|
lib = args.lib;
|
||||||
|
fetchurl = args.fetchurl;
|
||||||
|
FullDepEntry = args.FullDepEntry;
|
||||||
|
|
||||||
|
version = lib.getAttr ["version"] "0.7.23" args;
|
||||||
|
buildInputs = with args; [
|
||||||
|
openssl zlib pcre libxml2 libxslt
|
||||||
|
];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://sysoev.ru/nginx/nginx-${version}.tar.gz";
|
||||||
|
sha256 = "1fygkagzclfqygipgi140jf3aiwqn8yqxjmk181i31p4di5m46rk";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 = FullDepEntry ''
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
}
|
@ -5678,6 +5678,10 @@ let
|
|||||||
inherit fetchurl stdenv apacheHttpd python;
|
inherit fetchurl stdenv apacheHttpd python;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nginx = builderDefsPackage (import ../servers/http/nginx) {
|
||||||
|
inherit openssl pcre zlib libxml2 libxslt;
|
||||||
|
};
|
||||||
|
|
||||||
postfix = import ../servers/mail/postfix {
|
postfix = import ../servers/mail/postfix {
|
||||||
inherit fetchurl stdenv db4 openssl cyrus_sasl;
|
inherit fetchurl stdenv db4 openssl cyrus_sasl;
|
||||||
glibc = stdenv.glibc;
|
glibc = stdenv.glibc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user