summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2015-07-12 00:46:18 +0200
committerRickard Nilsson <rickynils@gmail.com>2015-07-12 00:49:18 +0200
commit7e021a0fd636587ff7908387f8c2fd97d34c772a (patch)
treec9162394195dbf8d49b579f9b3e81341efce6fe7 /pkgs
parentef5dafd66d4adb036708b72e015970c458c27d13 (diff)
downloadnixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar.gz
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar.bz2
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar.lz
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar.xz
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.tar.zst
nixpkgs-7e021a0fd636587ff7908387f8c2fd97d34c772a.zip
nginx package: Allow adding arbitrary modules
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/http/nginx/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix
index e799cb8214a..7888a772e2a 100644
--- a/pkgs/servers/http/nginx/default.nix
+++ b/pkgs/servers/http/nginx/default.nix
@@ -8,6 +8,7 @@
 , ngx_lua ? false
 , set_misc ? false
 , fluent ? false
+, extraModules ? []
 }:
 
 with stdenv.lib;
@@ -133,7 +134,8 @@ stdenv.mkDerivation rec {
     ++ optional set_misc "--add-module=${set-misc-ext}"
     ++ optionals (elem stdenv.system (with platforms; linux ++ freebsd)) 
         [ "--with-file-aio" "--with-aio_module" ]
-    ++ optional fluent "--add-module=${fluentd}";
+    ++ optional fluent "--add-module=${fluentd}"
+    ++ (map (m: "--add-module=${m}") extraModules);
 
 
   additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";