From ad66cc4d16483a77d860488e863b83e19989ff17 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 17 Sep 2025 16:53:54 +0100 Subject: [PATCH] onnxruntime: require macOS 13.3 Otherwise the build fails with the system libc++ changes. --- pkgs/by-name/on/onnxruntime/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/on/onnxruntime/package.nix b/pkgs/by-name/on/onnxruntime/package.nix index c42ea8d90f08..2964c8a1ac37 100644 --- a/pkgs/by-name/on/onnxruntime/package.nix +++ b/pkgs/by-name/on/onnxruntime/package.nix @@ -17,8 +17,9 @@ python3Packages, re2, zlib, - microsoft-gsl, protobuf, + microsoft-gsl, + darwinMinVersionHook, pythonSupport ? true, cudaSupport ? config.cudaSupport, ncclSupport ? config.cudaSupport, @@ -149,7 +150,10 @@ effectiveStdenv.mkDerivation rec { nccl ] ) - ); + ) + ++ lib.optionals effectiveStdenv.hostPlatform.isDarwin [ + (darwinMinVersionHook "13.3") + ]; nativeCheckInputs = [ gtest