rapcad: Fix running of {pre,post}Configure

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

However, this still doesn't fix the build of rapcad, because it's unable
to find GL/glu.h.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-04-15 04:29:28 +02:00
parent a0dd8d5afe
commit 38d5c07b14
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
1 changed files with 3 additions and 1 deletions

View File

@ -15,8 +15,10 @@ stdenv.mkDerivation rec {
buildInputs = [ qtbase cgal boost gmp mpfr flex bison dxflib readline ];
configurePhase = ''
qmake;
runHook preConfigure
qmake
sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
runHook postConfigure
'';
meta = {