diff options
author | Corbin <cds@corbinsimpson.com> | 2016-12-25 23:17:11 -0800 |
---|---|---|
committer | Corbin <cds@corbinsimpson.com> | 2016-12-26 10:24:58 -0800 |
commit | ca2fa4416e59ec72323e8b1bec52b8403d239e8e (patch) | |
tree | bbf119bc3e58c49c8748921daef3de9d694cf329 /pkgs/servers/http/nginx | |
parent | da70d3da0f11b22eac77756b39b349215e06b2e3 (diff) | |
download | nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar.gz nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar.bz2 nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar.lz nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar.xz nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.tar.zst nixlib-ca2fa4416e59ec72323e8b1bec52b8403d239e8e.zip |
nginx: Allow GD to be optional.
This commit permits incantations like `pkgs.nginx.override { gd = null; }` to produce a slimmed-down nginx. When used, this functionality removes a pile of stuff from nginx's closure. The resulting nginx's closure: $ nix-store -q -R /nix/store/wk3h0a4dmdmjmxkbd0q09iw0wfq0yzpz-nginx-1.10.2 | wc -l 12 $ nix-store -q -R /nix/store/gpcx77anqrj05qz0mrwm7hf4wgxry5py-nginx-1.10.2 | wc -l 24
Diffstat (limited to 'pkgs/servers/http/nginx')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index b1d70907e28c..5d5a98ad8a8f 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -27,7 +27,6 @@ stdenv.mkDerivation { "--with-http_realip_module" "--with-http_addition_module" "--with-http_xslt_module" - "--with-http_image_filter_module" "--with-http_geoip_module" "--with-http_sub_module" "--with-http_dav_module" @@ -44,6 +43,7 @@ stdenv.mkDerivation { # Install destination problems # "--with-http_perl_module" ] ++ optional withStream "--with-stream" + ++ optional (gd != null) "--with-http_image_filter_module" ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio" ++ map (mod: "--add-module=${mod.src}") modules; |