Loading pkgs/by-name/ng/nghttp3/package.nix +10 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,14 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; cmakeFlags = [ cmakeFlags = if stdenv.hostPlatform.isStatic then [ (lib.cmakeBool "ENABLE_SHARED_LIB" false) (lib.cmakeBool "ENABLE_STATIC_LIB" true) ] else [ (lib.cmakeBool "ENABLE_STATIC_LIB" false) ]; Loading pkgs/development/libraries/ngtcp2/default.nix +13 −3 Original line number Diff line number Diff line Loading @@ -36,7 +36,17 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optional withJemalloc jemalloc; cmakeFlags = [ cmakeFlags = if stdenv.hostPlatform.isStatic then [ # 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`. (lib.cmakeBool "ENABLE_LIB_ONLY" true) (lib.cmakeBool "ENABLE_SHARED_LIB" false) (lib.cmakeBool "ENABLE_STATIC_LIB" true) ] else [ (lib.cmakeBool "ENABLE_STATIC_LIB" false) ]; Loading Loading
pkgs/by-name/ng/nghttp3/package.nix +10 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,14 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; cmakeFlags = [ cmakeFlags = if stdenv.hostPlatform.isStatic then [ (lib.cmakeBool "ENABLE_SHARED_LIB" false) (lib.cmakeBool "ENABLE_STATIC_LIB" true) ] else [ (lib.cmakeBool "ENABLE_STATIC_LIB" false) ]; Loading
pkgs/development/libraries/ngtcp2/default.nix +13 −3 Original line number Diff line number Diff line Loading @@ -36,7 +36,17 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optional withJemalloc jemalloc; cmakeFlags = [ cmakeFlags = if stdenv.hostPlatform.isStatic then [ # 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`. (lib.cmakeBool "ENABLE_LIB_ONLY" true) (lib.cmakeBool "ENABLE_SHARED_LIB" false) (lib.cmakeBool "ENABLE_STATIC_LIB" true) ] else [ (lib.cmakeBool "ENABLE_STATIC_LIB" false) ]; Loading