hhvm: fix build with freetype-2.5
This commit is contained in:
parent
4e39e578f2
commit
c63a9c155c
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchgit, cmake, boost, libunwind, mariadb, libmemcached, pcre
|
{ stdenv, fetchgit, cmake, pkgconfig, boost, libunwind, mariadb, libmemcached, pcre
|
||||||
, libevent, gd, curl, libxml2, icu, flex, bison, openssl, zlib, php, re2c
|
, libevent, gd, curl, libxml2, icu, flex, bison, openssl, zlib, php, re2c
|
||||||
, expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog
|
, expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog
|
||||||
, bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng
|
, bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng
|
||||||
, libxslt, ocaml
|
, libxslt, ocaml, freetype
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ cmake boost libunwind mariadb libmemcached pcre libevent gd curl
|
[ cmake pkgconfig boost libunwind mariadb libmemcached pcre libevent gd curl
|
||||||
libxml2 icu flex bison openssl zlib php expat libcap oniguruma
|
libxml2 icu flex bison openssl zlib php expat libcap oniguruma
|
||||||
libdwarf libmcrypt tbb gperftools bzip2 openldap readline
|
libdwarf libmcrypt tbb gperftools bzip2 openldap readline
|
||||||
libelf uwimap binutils cyrus_sasl pam glog libpng libxslt ocaml
|
libelf uwimap binutils cyrus_sasl pam glog libpng libxslt ocaml
|
||||||
@ -31,6 +31,9 @@ stdenv.mkDerivation rec {
|
|||||||
MYSQL_INCLUDE_DIR="${mariadb}/include/mysql";
|
MYSQL_INCLUDE_DIR="${mariadb}/include/mysql";
|
||||||
MYSQL_DIR=mariadb;
|
MYSQL_DIR=mariadb;
|
||||||
|
|
||||||
|
# work around broken build system
|
||||||
|
NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2";
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace hphp/util/generate-buildinfo.sh \
|
substituteInPlace hphp/util/generate-buildinfo.sh \
|
||||||
--replace /bin/bash ${stdenv.shell}
|
--replace /bin/bash ${stdenv.shell}
|
||||||
|
Loading…
Reference in New Issue
Block a user