From 4166a4e4f81d974d51db5feab770198fbd1385b9 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Tue, 11 Nov 2025 14:41:45 -0400 Subject: [PATCH] ngtcp2: fix cygwin build --- pkgs/development/libraries/ngtcp2/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ngtcp2/default.nix b/pkgs/development/libraries/ngtcp2/default.nix index d5adaf38f797..efc54fd6fca0 100644 --- a/pkgs/development/libraries/ngtcp2/default.nix +++ b/pkgs/development/libraries/ngtcp2/default.nix @@ -39,8 +39,10 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ # The examples try to link against `ngtcp2_crypto_ossl` and `ngtcp2` libraries. # 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 too. - (lib.cmakeBool "ENABLE_LIB_ONLY" (stdenv.hostPlatform.isStatic || stdenv.hostPlatform.isFreeBSD)) + # 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 + )) (lib.cmakeBool "ENABLE_SHARED_LIB" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "ENABLE_STATIC_LIB" stdenv.hostPlatform.isStatic) ];