cmst: Fix running of {pre,post}Configure

Commit 0055c6a introduced a new preConfigure hook that sets the right
qmake path. Unfortunately the mkDerivation attributes of cmst override
the whole configurePhase, so this hook isn't run at all.

I've also added running the preBuild and postBuild hooks for the sake of
completeness so that it's easier to override the derivation attributes.

This fixes the build of cmst and it now successfully compiles on my
machine.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-04-15 05:00:18 +02:00
parent f1c2572479
commit 2c024d28a2
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ qtbase makeWrapper ];
configurePhase = ''
runHook preConfigure
substituteInPlace ./cmst.pro \
--replace "/usr/bin" "$out/bin" \
--replace "/usr/share" "$out/usr/share"
@ -28,11 +29,14 @@ stdenv.mkDerivation rec {
substituteInPlace ./apps/rootapp/rootapp.pro \
--replace "/etc" "$out/etc" \
--replace "/usr/share" "$out/share"
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
qmake PREFIX=$out
make
runHook postBuild
'';
postInstall = ''