···21 ../../libcxx-0001-musl-hacks.patch
22 ];
2300000024 preConfigure = ''
25 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
26 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···21 ../../libcxx-0001-musl-hacks.patch
22 ];
2324+ # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz"
25+ postPatch = ''
26+ substituteInPlace include/__config \
27+ --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" ""
28+ '';
29+30 preConfigure = ''
31 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
32 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···21 ../../libcxx-0001-musl-hacks.patch
22 ];
2300000024 preConfigure = ''
25 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
26 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···21 ../../libcxx-0001-musl-hacks.patch
22 ];
2324+ # Prevent errors like "error: 'foo' is unavailable: introduced in macOS yy.zz"
25+ postPatch = ''
26+ substituteInPlace include/__config \
27+ --replace "# define _LIBCPP_USE_AVAILABILITY_APPLE" ""
28+ '';
29+30 preConfigure = ''
31 # Get headers from the cxxabi source so we can see private headers not installed by the cxxabi package
32 cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$LIBCXXABI_INCLUDE_DIR")
···26 export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
27 '';
2829- # error: 'get< ... >' is unavailable: introduced in macOS 10.13
30- CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY";
31-32 meta = with lib; {
33 description = "An open source implementation of the actor model in C++";
34 homepage = "http://actor-framework.org/";
···26 export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
27 '';
2800029 meta = with lib; {
30 description = "An open source implementation of the actor model in C++";
31 homepage = "http://actor-framework.org/";