Skip to content

Commit dff5621

Browse files
nginx: always use newer nginx version between stable and mainline
1 parent 758f154 commit dff5621

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/nginx.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ in
170170
if cfg.configureQuic then
171171
pkgs.nginxQuic
172172
else
173-
pkgs.nginxMainline
173+
# use the newer version
174+
if lib.versionOlder pkgs.nginx.version pkgs.nginxMainline.version then
175+
pkgs.nginxMainline
176+
else
177+
pkgs.nginx
174178
));
175179

176180
recommendedBrotliSettings = lib.mkIf cfg.allRecommendOptions (lib.mkDefault true);

0 commit comments

Comments
 (0)