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:
parent
c67e08e1af
commit
8bf002daac
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue