ocaml-expat: fix build on darwin

This commit is contained in:
Vincent Laporte 2016-10-03 21:24:55 +02:00 committed by vbgl
parent b7cb8f3da7
commit f97d5ae81f

View File

@ -28,7 +28,8 @@ stdenv.mkDerivation rec {
substituteInPlace "unittest.ml" \
--replace "/home/maas/xml-samples/REC-xml-19980210.xml.txt" "${testcase}"
substituteInPlace Makefile --replace "EXPAT_LIBDIR=/usr/local/lib" "EXPAT_LIBDIR=${expat.out}/lib" \
substituteInPlace Makefile --replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat.dev}/include" \
--replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat.dev}/include" \
--replace "gcc" "\$(CC)"
'';
configurePhase = "true"; # Skip configure