qmltermwidget: move to qmakeHook

This reverts commit 2d6ea2cc30.
This commit is contained in:
Nikolay Amiantov 2016-04-16 23:02:33 +03:00
parent 49558b04d2
commit 005dab1a7a

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, qtbase, qtquick1 }:
{ stdenv, fetchgit, qtbase, qtquick1, qmakeHook }:
stdenv.mkDerivation rec {
version = "0.1.0";
@ -11,19 +11,14 @@ stdenv.mkDerivation rec {
};
buildInputs = [ qtbase qtquick1 ];
nativeBuildInputs = [ qmakeHook ];
patchPhase = ''
substituteInPlace qmltermwidget.pro \
--replace '$$[QT_INSTALL_QML]' "/lib/qt5/qml/"
'';
configurePhase = ''
runHook preConfigure
qmake PREFIX=$out
runHook postConfigure
'';
installPhase=''make INSTALL_ROOT="$out" install'';
installFlags = [ "INSTALL_ROOT=$(out)" ];
enableParallelBuilding = true;