lol
1{stdenv, fetchgit, qt5, cgal, boost, gmp, mpfr, flex, bison, dxflib, readline }:
2
3stdenv.mkDerivation rec {
4 version = "0.9.5";
5 name = "rapcad-${version}";
6
7 src = fetchgit {
8 url = "https://github.com/GilesBathgate/RapCAD.git";
9 rev = "refs/tags/v${version}";
10 sha256 = "15c18jvgbwyrfhv7r35ih0gzx35vjlsbi984h1sckgh2z17hjq8l";
11 };
12
13 buildInputs = [qt5.base cgal boost gmp mpfr flex bison dxflib readline ];
14
15 configurePhase = ''
16 qmake;
17 sed -e "s@/usr/@$out/@g" -i $(find . -name Makefile)
18 '';
19
20 meta = {
21 license = stdenv.lib.licenses.gpl3;
22 maintainers = with stdenv.lib.maintainers; [raskin];
23 platforms = stdenv.lib.platforms.linux;
24 description = ''Constructive solid geometry package'';
25 };
26}