@@ -43,8 +43,8 @@ in stdenv.mkDerivation rec {
4343 '' + stdenv.lib.optionalString stdenv.isDarwin ''
4444 # Apple Open Sourced LZFSE, but not libcompression, and it isn't
4545 # part of an impure framework we can add
46− sed '/#define HAVE_LIBCOMPRESSION 1/d' \
47− -i Libraries/libcar/Sources/Rendition.cpp
46+ substituteInPlace Libraries/libcar/Sources/Rendition.cpp \
47+ --replace "#if HAVE_LIBCOMPRESSION" "#if 0"
4848 '';
4949
5050 enableParallelBuilding = true;