nng: build with BUILD_SHARED_LIBS

This commit is contained in:
theverygaming
2025-05-18 00:08:47 +02:00
parent 4160c7807b
commit b21dd81c5a
+4 -1
View File
@@ -27,7 +27,10 @@ stdenv.mkDerivation rec {
buildInputs = lib.optionals mbedtlsSupport [ mbedtls ];
cmakeFlags =
[ "-G Ninja" ]
[
"-G Ninja"
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
]
++ lib.optionals mbedtlsSupport [
"-DMBEDTLS_ROOT_DIR=${mbedtls}"
"-DNNG_ENABLE_TLS=ON"