2015-12-20 03:22:17 +01:00
|
|
|
{ stdenv, fetchgit, cgal, boost, gmp, mpfr, flex, bison, dxflib, readline
|
|
|
|
, qtbase
|
|
|
|
}:
|
2012-08-27 13:41:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-04 10:14:19 +01:00
|
|
|
version = "0.9.5";
|
2012-08-27 13:41:49 +02:00
|
|
|
name = "rapcad-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2013-07-18 19:42:04 +02:00
|
|
|
url = "https://github.com/GilesBathgate/RapCAD.git";
|
2012-08-27 13:41:49 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2014-11-04 10:14:19 +01:00
|
|
|
sha256 = "15c18jvgbwyrfhv7r35ih0gzx35vjlsbi984h1sckgh2z17hjq8l";
|
2012-08-27 13:41:49 +02:00
|
|
|
};
|
2015-12-20 03:22:17 +01:00
|
|
|
|
|
|
|
buildInputs = [ qtbase cgal boost gmp mpfr flex bison dxflib readline ];
|
2012-08-27 13:41:49 +02:00
|
|
|
|
|
|
|
configurePhase = ''
|
2016-04-15 04:29:28 +02:00
|
|
|
runHook preConfigure
|
|
|
|
qmake
|
2012-08-27 13:41:49 +02:00
|
|
|
sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
|
2016-04-15 04:29:28 +02:00
|
|
|
runHook postConfigure
|
2012-08-27 13:41:49 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
description = ''Constructive solid geometry package'';
|
|
|
|
};
|
|
|
|
}
|