lol

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>

aszlig 2c024d28 f1c25724

+4
+4
pkgs/tools/networking/cmst/default.nix
··· 13 13 buildInputs = [ qtbase makeWrapper ]; 14 14 15 15 configurePhase = '' 16 + runHook preConfigure 16 17 substituteInPlace ./cmst.pro \ 17 18 --replace "/usr/bin" "$out/bin" \ 18 19 --replace "/usr/share" "$out/usr/share" ··· 28 29 substituteInPlace ./apps/rootapp/rootapp.pro \ 29 30 --replace "/etc" "$out/etc" \ 30 31 --replace "/usr/share" "$out/share" 32 + runHook postConfigure 31 33 ''; 32 34 33 35 buildPhase = '' 36 + runHook preBuild 34 37 qmake PREFIX=$out 35 38 make 39 + runHook postBuild 36 40 ''; 37 41 38 42 postInstall = ''