From 25eeefb7d1d89bc19d23135e45ac37258fc8c3f7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 2 Feb 2026 13:41:48 -0600 Subject: [PATCH] libev: Enable cross-build for mingw --- pkgs/by-name/li/libev/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libev/package.nix b/pkgs/by-name/li/libev/package.nix index 86462cc5380f..d92fac702b70 100644 --- a/pkgs/by-name/li/libev/package.nix +++ b/pkgs/by-name/li/libev/package.nix @@ -36,7 +36,11 @@ stdenv.mkDerivation rec { makeFlags = # doing this in configureFlags causes configure to fail - lib.optional (!static && stdenv.hostPlatform.isCygwin) "LDFLAGS=-no-undefined"; + (lib.optional (!static && stdenv.hostPlatform.isCygwin) "LDFLAGS+=-no-undefined") + ++ (lib.optionals (!static && stdenv.hostPlatform.isWindows) [ + "LDFLAGS+=-no-undefined" + "LDFLAGS+=-lws2_32" + ]); meta = { description = "High-performance event loop/event model with lots of features";