···10 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include"
11 '';
1213- # on next rebuild, this can be replaced with optionals; for now set to null to avoid
14- # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
15- patches = if stdenv.hostPlatform.isMusl then [
16 ../../libcxx-0001-musl-hacks.patch
17- ] else null;
1819 prePatch = ''
20 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
···10 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include"
11 '';
1213- # on next rebuild, this can be replaced with optionals; for now set to null to avoid
14- # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
15- patches = if stdenv.hostPlatform.isMusl then [
16 ../../libcxx-0001-musl-hacks.patch
17- ] else null;
1819 prePatch = ''
20 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
···22 unset CPP
23 '';
2425- # Use `lib.optionalString` next mass rebuild.
26- makeFlags = if stdenv.buildPlatform == stdenv.hostPlatform
27- then null
28- else "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
2930 meta = with stdenv.lib; {
31 homepage = https://fedorahosted.org/newt/;