Commit ad27491b authored by Robert Scott's avatar Robert Scott Committed by Bjørn Forsman
Browse files

ngtcp2: fix build on darwin by providing CoreServices

parent e6cae7e4
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub
, cmake
, brotli, libev, nghttp3, quictls
, CoreServices
, withJemalloc ? false, jemalloc
, curlHTTP3
}:
@@ -20,7 +21,14 @@ stdenv.mkDerivation rec {
  outputs = [ "out" "dev" "doc" ];

  nativeBuildInputs = [ cmake ];
  buildInputs = [ brotli libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc;
  buildInputs = [
    brotli
    libev
    nghttp3
    quictls
  ] ++ lib.optionals stdenv.isDarwin [
    CoreServices
  ] ++ lib.optional withJemalloc jemalloc;

  cmakeFlags = [
    (lib.cmakeBool "ENABLE_STATIC_LIB" false)
+1 −1
Original line number Diff line number Diff line
@@ -23684,7 +23684,7 @@ with pkgs;
  nghttp3 = callPackage ../development/libraries/nghttp3 { inherit (darwin.apple_sdk.frameworks) CoreServices; };
  ngtcp2 = callPackage ../development/libraries/ngtcp2 { };
  ngtcp2 = callPackage ../development/libraries/ngtcp2 { inherit (darwin.apple_sdk.frameworks) CoreServices; };
  ngtcp2-gnutls = callPackage ../development/libraries/ngtcp2/gnutls.nix { };
  nix-plugins = callPackage ../development/libraries/nix-plugins { };