···2121 ../../libcxx-0001-musl-hacks.patch
2222 ];
23232424+ # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz"
2525+ postPatch = ''
2626+ substituteInPlace include/__config \
2727+ --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" ""
2828+ '';
2929+2430 preConfigure = ''
2531 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
2632 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···2121 ../../libcxx-0001-musl-hacks.patch
2222 ];
23232424+ # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz"
2525+ postPatch = ''
2626+ substituteInPlace include/__config \
2727+ --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" ""
2828+ '';
2929+2430 preConfigure = ''
2531 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
2632 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···2626 export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
2727 '';
28282929- # error: 'get< ... >' is unavailable: introduced in macOS 10.13
3030- CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY";
3131-3229 meta = with lib; {
3330 description = "An open source implementation of the actor model in C++";
3431 homepage = "http://actor-framework.org/";