zlib-ng: fix cygwin build (#476286)

This commit is contained in:
John Ericson
2026-01-03 22:26:25 +00:00
committed by GitHub
+4 -1
View File
@@ -45,7 +45,10 @@ stdenv.mkDerivation rec {
"-DBUILD_SHARED_LIBS=ON"
"-DINSTALL_UTILS=ON"
]
++ lib.optionals withZlibCompat [ "-DZLIB_COMPAT=ON" ];
++ lib.optionals withZlibCompat [ "-DZLIB_COMPAT=ON" ]
++ lib.optional (
stdenv.hostPlatform.isWindows || stdenv.hostPlatform.isCygwin
) "-DCMAKE_RC_COMPILER=${stdenv.cc.targetPrefix}windres";
meta = {
description = "Zlib data compression library for the next generation systems";