summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2013-12-13 02:45:45 -0800
committerDomen Kožar <domen@dev.si>2013-12-13 02:45:45 -0800
commitb239c3f3ee0ac327340e55e17538abcdb3406dcc (patch)
treee95521aa4c1e09a2a67a5886f98ec5871513fdf2 /pkgs/servers/http
parent69e9a40b25fa8b116f7807a33b37c4c460279435 (diff)
parent698860bf7cd0b85f4d4e0a019ac96da26a23455b (diff)
downloadnixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar.gz
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar.bz2
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar.lz
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar.xz
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.tar.zst
nixlib-b239c3f3ee0ac327340e55e17538abcdb3406dcc.zip
Merge pull request #1370 from offlinehacker/pkgs/nginx/module_moreheaders
nginx: add headers more nginx module
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/nginx/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix
index d29518d710ee..b16911cfb5d9 100644
--- a/pkgs/servers/http/nginx/default.nix
+++ b/pkgs/servers/http/nginx/default.nix
@@ -1,7 +1,8 @@
 { stdenv, fetchurl, fetchgit, openssl, zlib, pcre, libxml2, libxslt, expat
 , rtmp ? false
 , fullWebDAV ? false
-, syslog ? false}:
+, syslog ? false
+, moreheaders ? false}:
 
 let
   version = "1.4.4";
@@ -27,6 +28,12 @@ let
     rev = "165affd9741f0e30c4c8225da5e487d33832aca3";
     sha256 = "14dkkafjnbapp6jnvrjg9ip46j00cr8pqc2g7374z9aj7hrvdvhs";
   };
+
+  moreheaders-ext = fetchgit {
+    url = https://github.com/agentzh/headers-more-nginx-module.git;
+    rev = "refs/tags/v0.23";
+    sha256 = "12pbjgsxnvcf2ff2i2qdn39q4cm5czlgrng96j8ml4cgxvnbdh39";
+  };
 in
 
 stdenv.mkDerivation rec {
@@ -51,7 +58,8 @@ stdenv.mkDerivation rec {
     # "--with-http_perl_module"
   ] ++ stdenv.lib.optional rtmp "--add-module=${rtmp-ext}"
     ++ stdenv.lib.optional fullWebDAV "--add-module=${dav-ext}"
-    ++ stdenv.lib.optional syslog "--add-module=${syslog-ext}";
+    ++ stdenv.lib.optional syslog "--add-module=${syslog-ext}"
+    ++ stdenv.lib.optional moreheaders "--add-module=${moreheaders-ext}";
 
   preConfigure = ''
     export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"