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 ];
    };
This commit is contained in:
Vincent Bernat 2019-01-31 01:15:14 +01:00 committed by Danylo Hlynskyi
parent 4f8e9e7c9b
commit 33802e9ed8

View File

@ -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;