Merge pull request #14989 from veprbl/root_fix2

root: fix chrooted build, workaround 491f7f017c4dd (cmake: set LIBDIR…
This commit is contained in:
Peter Simons 2016-04-25 23:42:00 +02:00
commit e9b62fb021

@ -12,8 +12,14 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake pkgconfig python libX11 libXpm libXft libXext zlib lzma ];
preConfigure = ''
patchShebangs build/unix/
'';
cmakeFlags = [
"-Drpath=ON"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
]
++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include";