@@ -3,18 +3,18 @@
33, expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog, libkrb5
44, bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng
55, libxslt, ocaml, freetype, gdb, git, perl, mariadb, gmp, libyaml, libedit
6−, libvpx, imagemagick, fribidi, gperf
6+, libvpx, imagemagick, fribidi, gperf, which
77}:
88
99stdenv.mkDerivation rec {
1010 name = "hhvm-${version}";
11− version = "3.15.8";
11+ version = "3.21";
1212
1313 # use git version since we need submodules
1414 src = fetchgit {
1515 url = "https://github.com/facebook/hhvm.git";
16− rev = "983bdab781d9d7bff5f14a4a2827c2c217c500df";
17− sha256 = "0sbjwdy69x08c4w0vf83dcfx3fin8qqysl9pacy2j6p0hxvgn5r5";
16+ rev = "56483773e2edd9e61782f1901ce40e47959e71b8";
17+ sha256 = "0dmdk98nv04m0fv6909gfbsxqlkckn369yi7kadhir0r7vxsj7wa";
1818 fetchSubmodules = true;
1919 };
2020
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap
2424 oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline
2525 libelf uwimap binutils cyrus_sasl pam glog libpng libxslt ocaml libkrb5
26− gmp libyaml libedit libvpx imagemagick fribidi gperf
26+ gmp libyaml libedit libvpx imagemagick fribidi gperf which
2727 ];
2828
2929 patches = [
@@ -43,10 +43,10 @@ stdenv.mkDerivation rec {
4343 cmakeFlags = "-DCMAKE_INSTALL_INCLUDEDIR=include";
4444
4545 prePatch = ''
46− substituteInPlace hphp/util/generate-buildinfo.sh \
47− --replace /bin/bash ${stdenv.shell}
4846 substituteInPlace ./configure \
4947 --replace "/usr/bin/env bash" ${stdenv.shell}
48+ substituteInPlace ./third-party/ocaml/CMakeLists.txt \
49+ --replace "/bin/bash" ${stdenv.shell}
5050 perl -pi -e 's/([ \t(])(isnan|isinf)\(/$1std::$2(/g' \
5151 hphp/runtime/base/*.cpp \
5252 hphp/runtime/ext/std/*.cpp \