nginx: Fix cross-OS build (#371960)

This commit is contained in:
misuzu
2025-02-10 20:17:39 +02:00
committed by GitHub
+3
View File
@@ -170,6 +170,9 @@ stdenv.mkDerivation {
[ "--with-http_geoip_module" ] ++ lib.optional withStream "--with-stream_geoip_module"
)
++ lib.optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio"
++ lib.optional (
stdenv.buildPlatform != stdenv.hostPlatform
) "--crossbuild=${stdenv.hostPlatform.uname.system}::${stdenv.hostPlatform.uname.processor}"
++ configureFlags
++ map (mod: "--add-module=${mod.src}") modules;