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