From 67ddced6771ef76e8ec6678b50a1df539bae42ed Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 2 Feb 2026 13:42:24 -0600 Subject: [PATCH] ngtcp2: Enable cross-build for mingw --- pkgs/development/libraries/ngtcp2/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ngtcp2/default.nix b/pkgs/development/libraries/ngtcp2/default.nix index efc54fd6fca0..5ed09017f0fb 100644 --- a/pkgs/development/libraries/ngtcp2/default.nix +++ b/pkgs/development/libraries/ngtcp2/default.nix @@ -41,7 +41,10 @@ stdenv.mkDerivation (finalAttrs: { # This works in the dynamic case where the targets have the same name, but not here where they're suffixed with `_static`. # Also, the examples depend on Linux-specific APIs, so we avoid them on FreeBSD/Cygwin too. (lib.cmakeBool "ENABLE_LIB_ONLY" ( - stdenv.hostPlatform.isStatic || stdenv.hostPlatform.isFreeBSD || stdenv.hostPlatform.isCygwin + stdenv.hostPlatform.isStatic + || stdenv.hostPlatform.isFreeBSD + || stdenv.hostPlatform.isCygwin + || stdenv.hostPlatform.isWindows )) (lib.cmakeBool "ENABLE_SHARED_LIB" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "ENABLE_STATIC_LIB" stdenv.hostPlatform.isStatic) @@ -58,7 +61,7 @@ stdenv.mkDerivation (finalAttrs: { changelog = "https://github.com/ngtcp2/ngtcp2/releases/tag/v${finalAttrs.version}"; description = "Implementation of the QUIC protocol (RFC9000)"; license = lib.licenses.mit; - platforms = lib.platforms.unix; + platforms = lib.platforms.unix ++ lib.platforms.windows; maintainers = with lib.maintainers; [ izorkin ]; }; })