about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-11-30 09:06:53 +0000
committerMichael Raskin <7c6f434c@mail.ru>2008-11-30 09:06:53 +0000
commit8c90c64e9462931abd062b58679d8306871ef289 (patch)
treec15a6a47900e4fa3ac480c7e1fd83a123d5b87a0 /pkgs/servers
parentab0f8f2bb496e6f23bc4c8c343963bd66ab52a05 (diff)
Added nginx - lightweight http server
svn path=/nixpkgs/trunk/; revision=13518
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/http/nginx/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix
new file mode 100644
index 0000000000000..fbd2966237d51
--- /dev/null
+++ b/pkgs/servers/http/nginx/default.nix
@@ -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";
+  };
+}