lol

libc++5: tweak expression so as to avoid rebuild on non-musl for now

+6 -2
+6 -2
pkgs/development/compilers/llvm/5/libc++/default.nix
··· 9 9 unpackFile ${libcxxabi.src} 10 10 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include" 11 11 ''; 12 - patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ 12 + 13 + # 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 [ 13 16 ../../libcxx-0001-musl-hacks.patch 14 - ]; 17 + ] else null; 18 + 15 19 prePatch = '' 16 20 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++" 17 21 '';