xcbuild: fix build on darwin

This commit is contained in:
Mario Rodas 2019-08-05 22:48:29 -05:00
parent a38c8ab6d1
commit 2444738dae
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8

View file

@ -40,6 +40,9 @@ in stdenv.mkDerivation rec {
postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) ''
sed 1i'#include <sys/sysmacros.h>' \
-i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Libraries/libcar/Sources/Rendition.cpp \
--replace "#if HAVE_LIBCOMPRESSION" "#if 0"
'';
enableParallelBuilding = true;