38d5c07b14
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>
30 lines
792 B
Nix
30 lines
792 B
Nix
{ stdenv, fetchgit, cgal, boost, gmp, mpfr, flex, bison, dxflib, readline
|
|
, qtbase
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.5";
|
|
name = "rapcad-${version}";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/GilesBathgate/RapCAD.git";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "15c18jvgbwyrfhv7r35ih0gzx35vjlsbi984h1sckgh2z17hjq8l";
|
|
};
|
|
|
|
buildInputs = [ qtbase cgal boost gmp mpfr flex bison dxflib readline ];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
qmake
|
|
sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
|
|
runHook postConfigure
|
|
'';
|
|
|
|
meta = {
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
description = ''Constructive solid geometry package'';
|
|
};
|
|
}
|