dfasma: move to qmakeHook

This reverts commit 4dde716a05.
This commit is contained in:
Nikolay Amiantov 2016-04-16 22:59:20 +03:00
parent 3a713b166e
commit a3d909836d

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fftw, libsndfile, qtbase, qtmultimedia, makeQtWrapper }:
{ stdenv, fetchFromGitHub, fftw, libsndfile, qtbase, qtmultimedia, qmakeHook, makeQtWrapper }:
let
@ -37,7 +37,7 @@ in stdenv.mkDerivation rec {
owner = "gillesdegottex";
};
buildInputs = [ fftw libsndfile qtbase qtmultimedia ];
buildInputs = [ fftw libsndfile qtbase qtmultimedia qmakeHook ];
nativeBuildInputs = [ makeQtWrapper ];
@ -47,10 +47,8 @@ in stdenv.mkDerivation rec {
cp -Rv "${libqaudioextra.src}"/* external/libqaudioextra
'';
configurePhase = ''
runHook preConfigure
qmake PREFIX=$out PREFIXSHORTCUT=$out dfasma.pro
runHook postConfigure
preConfigure = ''
qmakeFlags="$qmakeFlags PREFIXSHORTCUT=$out"
'';
enableParallelBuilding = true;