nginx package: Allow adding arbitrary modules

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