diff options
author | Vincent Bernat <vincent@bernat.ch> | 2019-01-31 01:15:14 +0100 |
---|---|---|
committer | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2019-01-31 02:15:14 +0200 |
commit | 33802e9ed8a04e37bd6d70be07df6e927c68ccfb (patch) | |
tree | 9dff7c6b131209c3148b6ba7604c33dac6d5d9f2 /pkgs/servers/http | |
parent | 4f8e9e7c9b45e74618de10dd24f8baf9124260d2 (diff) | |
download | nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar.gz nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar.bz2 nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar.lz nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar.xz nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.tar.zst nixlib-33802e9ed8a04e37bd6d70be07df6e927c68ccfb.zip |
nginx: expose list of additional modules (#53897)
Currently, it seems there is no easy way to override package to add modules. For example, if we want to add the `ipscrub` module, we can do: pkgs.nginxStable.override { modules = [ pkgs.nginxModules.ipscrub ]; }; But, then, we loose `rtmp`, `dav` and `moreheaders` which are defined in `all-packages.nix`. With this modification, we can now do: pkgs.nginxStable.override { modules = pkg.nginxStable.passthru.modules ++ [ pkgs.nginxModules.ipscrub ]; };
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 9ea49267cf8c..691ca014257b 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -87,6 +87,8 @@ stdenv.mkDerivation { mv $out/sbin $out/bin ''; + passthru.modules = modules; + meta = { description = "A reverse proxy and lightweight webserver"; homepage = http://nginx.org; |