nginx package: Allow adding arbitrary modules

+3 -1
+3 -1
pkgs/servers/http/nginx/default.nix
··· 8 , ngx_lua ? false 9 , set_misc ? false 10 , fluent ? false 11 }: 12 13 with stdenv.lib; ··· 133 ++ optional set_misc "--add-module=${set-misc-ext}" 134 ++ optionals (elem stdenv.system (with platforms; linux ++ freebsd)) 135 [ "--with-file-aio" "--with-aio_module" ] 136 - ++ optional fluent "--add-module=${fluentd}"; 137 138 139 additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";
··· 8 , ngx_lua ? false 9 , set_misc ? false 10 , fluent ? false 11 + , extraModules ? [] 12 }: 13 14 with stdenv.lib; ··· 134 ++ optional set_misc "--add-module=${set-misc-ext}" 135 ++ optionals (elem stdenv.system (with platforms; linux ++ freebsd)) 136 [ "--with-file-aio" "--with-aio_module" ] 137 + ++ optional fluent "--add-module=${fluentd}" 138 + ++ (map (m: "--add-module=${m}") extraModules); 139 140 141 additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";