mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
libc++5: tweak expression so as to avoid rebuild on non-musl for now
This commit is contained in:
parent
fa8a511260
commit
e5e69a7aed
|
@ -9,9 +9,13 @@ stdenv.mkDerivation rec {
|
|||
unpackFile ${libcxxabi.src}
|
||||
export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include"
|
||||
'';
|
||||
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
||||
|
||||
# on next rebuild, this can be replaced with optionals; for now set to null to avoid
|
||||
# patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
||||
patches = if stdenv.hostPlatform.isMusl then [
|
||||
../../libcxx-0001-musl-hacks.patch
|
||||
];
|
||||
] else null;
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue