fmit: move to qmakeHook

This reverts commit 97d89ad7ee.
This commit is contained in:
Nikolay Amiantov 2016-04-16 22:59:19 +03:00
parent a3d909836d
commit 222c4a221e

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fftw, freeglut, qtbase, qtmultimedia { stdenv, fetchFromGitHub, fftw, freeglut, mesa_glu, qtbase, qtmultimedia, qmakeHook
, alsaSupport ? true, alsaLib ? null , alsaSupport ? true, alsaLib ? null
, jackSupport ? false, libjack2 ? null , jackSupport ? false, libjack2 ? null
, portaudioSupport ? false, portaudio ? null }: , portaudioSupport ? false, portaudio ? null }:
@ -18,22 +18,17 @@ stdenv.mkDerivation rec {
owner = "gillesdegottex"; owner = "gillesdegottex";
}; };
buildInputs = [ fftw freeglut qtbase qtmultimedia ] buildInputs = [ fftw freeglut mesa_glu qtbase qtmultimedia qmakeHook ]
++ stdenv.lib.optionals alsaSupport [ alsaLib ] ++ stdenv.lib.optionals alsaSupport [ alsaLib ]
++ stdenv.lib.optionals jackSupport [ libjack2 ] ++ stdenv.lib.optionals jackSupport [ libjack2 ]
++ stdenv.lib.optionals portaudioSupport [ portaudio ]; ++ stdenv.lib.optionals portaudioSupport [ portaudio ];
configurePhase = '' preConfigure = ''
runHook preConfigure qmakeFlags="$qmakeFlags \
mkdir build
cd build
qmake \
CONFIG+=${stdenv.lib.optionalString alsaSupport "acs_alsa"} \ CONFIG+=${stdenv.lib.optionalString alsaSupport "acs_alsa"} \
CONFIG+=${stdenv.lib.optionalString jackSupport "acs_jack"} \ CONFIG+=${stdenv.lib.optionalString jackSupport "acs_jack"} \
CONFIG+=${stdenv.lib.optionalString portaudioSupport "acs_portaudio"} \ CONFIG+=${stdenv.lib.optionalString portaudioSupport "acs_portaudio"} \
PREFIX="$out" PREFIXSHORTCUT="$out" \ PREFIXSHORTCUT=$out"
../fmit.pro
runHook postConfigure
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;