From 0266fe89483498c03e433e4bf59e54eeb5a4dcc7 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Mon, 22 Dec 2025 14:56:16 -0400 Subject: [PATCH] zlib-ng: fix cygwin build --- pkgs/by-name/zl/zlib-ng/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/zl/zlib-ng/package.nix b/pkgs/by-name/zl/zlib-ng/package.nix index 154bc13acbfb..479c6cad4b98 100644 --- a/pkgs/by-name/zl/zlib-ng/package.nix +++ b/pkgs/by-name/zl/zlib-ng/package.nix @@ -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";