git.iko.soy/typeable/nixpkgs
on master help sign in
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 ]; };

commit33802e9ed8a04e37bd6d70be07df6e927c68ccfb authorVincent Bernat <vincent@bernat.ch> dateThu 31 Jan 2019, 01:15 (8 years ago) parent4f8e9e7
1 file changed+2
pkgs/servers/http/nginx/generic.nix+2
pkgs/servers/http/nginx/generic.nix+2
@@ -87,6 +87,8 @@ stdenv.mkDerivation {
8787 mv $out/sbin $out/bin
8888 '';
8989
90+ passthru.modules = modules;
91+
9092 meta = {
9193 description = "A reverse proxy and lightweight webserver";
9294 homepage = http://nginx.org;