summary refs log tree commit diff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-03-23 12:50:38 +0000
committerDomen Kožar <domen@dev.si>2016-03-23 12:50:38 +0000
commitb682a64e1659688112e3212517a61fa058542c63 (patch)
treebd2ac1d7613aa59097af6ff27fde76a74a786fc4
parent5dab370d7779b0e372da00dcd262c64c2d8b58eb (diff)
parent524310d29e5846252ce0f787ea4dae022adaa3f4 (diff)
downloadnixlib-b682a64e1659688112e3212517a61fa058542c63.tar
nixlib-b682a64e1659688112e3212517a61fa058542c63.tar.gz
nixlib-b682a64e1659688112e3212517a61fa058542c63.tar.bz2
nixlib-b682a64e1659688112e3212517a61fa058542c63.tar.lz
nixlib-b682a64e1659688112e3212517a61fa058542c63.tar.xz
nixlib-b682a64e1659688112e3212517a61fa058542c63.tar.zst
nixlib-b682a64e1659688112e3212517a61fa058542c63.zip
Merge pull request #14151 from tavyc/hhvm
hhvm: 3.6.0 -> 3.12.1
-rw-r--r--pkgs/development/compilers/hhvm/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/development/compilers/hhvm/default.nix b/pkgs/development/compilers/hhvm/default.nix
index 817b20af9c49..d976b6edab84 100644
--- a/pkgs/development/compilers/hhvm/default.nix
+++ b/pkgs/development/compilers/hhvm/default.nix
@@ -3,18 +3,18 @@
 , expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog, libkrb5
 , bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng
 , libxslt, ocaml, freetype, gdb, git, perl, mariadb, gmp, libyaml, libedit
-, libvpx, imagemagick, fribidi
+, libvpx, imagemagick, fribidi, gperf
 }:
 
 stdenv.mkDerivation rec {
   name    = "hhvm-${version}";
-  version = "3.6.0";
+  version = "3.12.1";
 
   # use git version since we need submodules
   src = fetchgit {
     url    = "https://github.com/facebook/hhvm.git";
-    rev    = "6ef13f20da20993dc8bab9eb103f73568618d3e8";
-    sha256 = "29a2d4b56cfd348b199d8f90b4e4b07de85dfb2ef1538479cd1e84f5bc1fbf96";
+    rev    = "f516f1bb9046218f89885a220354c19dda6d8f4d";
+    sha256 = "1jdw6j394z7ksg4wdcnm7lkcs7iam5myx6k18w8hr595s1dfk3sj";
     fetchSubmodules = true;
   };
 
@@ -23,10 +23,10 @@ stdenv.mkDerivation rec {
       libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap
       oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline
       libelf uwimap binutils cyrus_sasl pam glog libpng libxslt ocaml libkrb5
-      gmp libyaml libedit libvpx imagemagick fribidi
+      gmp libyaml libedit libvpx imagemagick fribidi gperf
     ];
 
-  enableParallelBuilding = false;
+  enableParallelBuilding = true;
   dontUseCmakeBuildDir = true;
   NIX_LDFLAGS = "-lpam -L${pam}/lib";
   MYSQL_INCLUDE_DIR="${mariadb}/include/mysql";
@@ -40,8 +40,12 @@ stdenv.mkDerivation rec {
       --replace /bin/bash ${stdenv.shell}
     substituteInPlace ./configure \
       --replace "/usr/bin/env bash" ${stdenv.shell}
-    sed '1i#include <vector>' \
-      -i ./third-party/mcrouter/mcrouter/lib/fibers/TimeoutController.h
+    perl -pi -e 's/([ \t(])(isnan|isinf)\(/$1std::$2(/g' \
+      hphp/runtime/base/*.cpp \
+      hphp/runtime/ext/std/*.cpp \
+      hphp/runtime/ext_zend_compat/php-src/main/*.cpp \
+      hphp/runtime/ext_zend_compat/php-src/main/*.h
+    patchShebangs .
   '';
 
   cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];