accounts-qt: move to qmakeHook

This reverts commit 25382a37e3.
This commit is contained in:
Nikolay Amiantov 2016-04-16 22:59:17 +03:00
parent 31d6dd6be0
commit 068c7b68a2

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase }: { stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase, qmakeHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "accounts-qt-${version}"; name = "accounts-qt-${version}";
@ -12,12 +12,10 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ glib libaccounts-glib qtbase ]; buildInputs = [ glib libaccounts-glib qtbase ];
nativeBuildInputs = [ doxygen pkgconfig ]; nativeBuildInputs = [ doxygen pkgconfig qmakeHook ];
configurePhase = '' preConfigure = ''
runHook preConfigure qmakeFlags="$qmakeFlags LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake"
qmake PREFIX=$out LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake
runHook postConfigure
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {