From 30bbbfe439c2f126cb56f379944a448e4f1b1043 Mon Sep 17 00:00:00 2001 From: sgt0 <140186177+sgt0@users.noreply.github.com> Date: Fri, 17 Oct 2025 13:55:25 +0000 Subject: [PATCH] vapoursynth: require macOS 13.3 Otherwise the build fails with: src/vspipe/vspipe.cpp:285:21: error: 'to_chars' is unavailable: introduced in macOS 13.3 285 | auto res = std::to_chars(buffer, buffer + sizeof(buffer), v, std::chars_format::fixed); | ^ /nix/store/zzn2cvbh4gs4zvyv9p52kclqqvqrfb5x-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1/__charconv/to_chars_floating_point.h:38:1: note: 'to_chars' has been explicitly marked unavailable here 38 | to_chars(char* __first, char* __last, double __value, chars_format __fmt); | ^ 1 error generated. --- pkgs/by-name/va/vapoursynth/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/va/vapoursynth/package.nix b/pkgs/by-name/va/vapoursynth/package.nix index b16a2a12cafe..1396767e3f7b 100644 --- a/pkgs/by-name/va/vapoursynth/package.nix +++ b/pkgs/by-name/va/vapoursynth/package.nix @@ -13,6 +13,7 @@ libass, python3, testers, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -40,6 +41,9 @@ stdenv.mkDerivation rec { cython ] )) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + (darwinMinVersionHook "13.3") ]; enableParallelBuilding = true;