nghttp3: Enable cross-build for mingw

This commit is contained in:
Greg Hellings
2026-02-02 22:22:42 -06:00
parent 67ddced677
commit 8cdc8165b1
+3 -2
View File
@@ -26,7 +26,8 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
(lib.cmakeBool "ENABLE_SHARED_LIB" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "ENABLE_STATIC_LIB" stdenv.hostPlatform.isStatic)
];
]
++ (lib.optional stdenv.hostPlatform.isWindows "-DENABLE_LIB_ONLY=1");
doCheck = true;
@@ -39,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
changelog = "https://github.com/ngtcp2/nghttp3/releases/tag/v${finalAttrs.version}";
description = "Implementation of HTTP/3 mapping over QUIC and QPACK in C";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
platforms = lib.platforms.unix ++ lib.platforms.windows;
maintainers = with lib.maintainers; [ izorkin ];
};
})