3
0
Fork 0
forked from mirrors/nixpkgs

libcxx-3.8: apply Darwin-specific patch only on Darwin

... to better decouple different platforms (in future).
This commit is contained in:
Vladimír Čunát 2016-06-20 15:06:19 +02:00
parent c67e08e1af
commit 8bf002daac

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
cmakeFlagsArray=($cmakeFlagsArray -DLIBCXX_CXX_ABI_INCLUDE_PATHS="$NIX_BUILD_TOP/libcxxabi-${version}.src/include")
'';
patches = [ ./darwin.patch ];
patches = lib.optional stdenv.isDarwin ./darwin.patch;
buildInputs = [ cmake libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;