tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nginx package: Allow adding arbitrary modules
Rickard Nilsson
10 years ago
7e021a0f
ef5dafd6
+3
-1
1 changed file
expand all
collapse all
unified
split
pkgs
servers
http
nginx
default.nix
+3
-1
pkgs/servers/http/nginx/default.nix
···
8
8
, ngx_lua ? false
9
9
, set_misc ? false
10
10
, fluent ? false
11
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
136
-
++ optional fluent "--add-module=${fluentd}";
137
137
+
++ optional fluent "--add-module=${fluentd}"
138
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";