nghttp3: fix build on darwin by providing CoreServices

This commit is contained in:
Robert Scott 2024-04-14 14:37:30 +01:00 committed by Bjørn Forsman
parent 248e51a6ee
commit e6cae7e4f7
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{ lib, stdenv, fetchFromGitHub
, cmake
, CoreServices
, curlHTTP3
}:
@ -18,6 +19,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
];
cmakeFlags = [
(lib.cmakeBool "ENABLE_STATIC_LIB" false)

View File

@ -23682,7 +23682,7 @@ with pkgs;
nghttp2 = callPackage ../development/libraries/nghttp2 { };
libnghttp2 = nghttp2.lib;
nghttp3 = callPackage ../development/libraries/nghttp3 { };
nghttp3 = callPackage ../development/libraries/nghttp3 { inherit (darwin.apple_sdk.frameworks) CoreServices; };
ngtcp2 = callPackage ../development/libraries/ngtcp2 { };
ngtcp2-gnutls = callPackage ../development/libraries/ngtcp2/gnutls.nix { };