···33 # work around broken build system
34 NIX_CFLAGS_COMPILE = "-I${freetype.dev}/include/freetype2";
350000036 prePatch = ''
37 substituteInPlace hphp/util/generate-buildinfo.sh \
38 --replace /bin/bash ${stdenv.shell}
···33 # work around broken build system
34 NIX_CFLAGS_COMPILE = "-I${freetype.dev}/include/freetype2";
3536+ # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
37+ # (setting it to an absolute path causes include files to go to $out/$out/include,
38+ # because the absolute path is interpreted with root at $out).
39+ cmakeFlags = "-DCMAKE_INSTALL_INCLUDEDIR=include";
40+41 prePatch = ''
42 substituteInPlace hphp/util/generate-buildinfo.sh \
43 --replace /bin/bash ${stdenv.shell}