Fixed libcommuni build.

This commit is contained in:
Meyer S. Jacobs 2016-06-29 18:29:59 -07:00 committed by Christoph Hrdinka
parent c4b346a539
commit bc0a7e7d44

View File

@ -1,4 +1,4 @@
{ fetchgit, qtbase, qmakeHook, stdenv { fetchgit, qtbase, qmakeHook, which, stdenv
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -12,13 +12,14 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ qtbase ]; buildInputs = [ qtbase ];
nativeBuildInputs = [ qmakeHook ]; nativeBuildInputs = [ qmakeHook which ];
enableParallelBuild = true; enableParallelBuild = true;
configurePhase = '' dontUseQmakeConfigure = true;
configureFlags = "-config release";
preConfigure = ''
sed -i -e 's|/bin/pwd|pwd|g' configure sed -i -e 's|/bin/pwd|pwd|g' configure
./configure -config release -prefix $out -qmake $QMAKE
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {