about summary refs log tree commit diff
path: root/pkgs/development/tools/xcbuild
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-08-05 22:48:29 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-08-05 22:48:29 -0500
commit2444738daeebdf890cadd80b5136ffe2f7eb193a (patch)
treeb71a6dd3f1fefb09040f5e4e479564e348ab6615 /pkgs/development/tools/xcbuild
parenta38c8ab6d136b692830260f6f179c2743cdc1c7c (diff)
downloadnixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar.gz
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar.bz2
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar.lz
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar.xz
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.tar.zst
nixlib-2444738daeebdf890cadd80b5136ffe2f7eb193a.zip
xcbuild: fix build on darwin
Diffstat (limited to 'pkgs/development/tools/xcbuild')
-rw-r--r--pkgs/development/tools/xcbuild/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/xcbuild/default.nix b/pkgs/development/tools/xcbuild/default.nix
index 29325fad7243..73fc0f99ce95 100644
--- a/pkgs/development/tools/xcbuild/default.nix
+++ b/pkgs/development/tools/xcbuild/default.nix
@@ -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;