@@ -1,20 +1,30 @@
1−{ stdenv, fetchurl, qt4, qmake4Hook, bison, flex, eigen, boost, libGLU_combined, glew, opencsg, cgal
2−, mpfr, gmp, glib, pkgconfig, harfbuzz, qscintilla, gettext
1+{ stdenv, fetchurl, fetchFromGitHub, qt5, libsForQt5
2+, bison, flex, eigen, boost, libGLU_combined, glew, opencsg, cgal
3+, mpfr, gmp, glib, pkgconfig, harfbuzz, gettext
34}:
45
56stdenv.mkDerivation rec {
6− version = "2015.03-3";
7+ version = "2018.04-git";
78 name = "openscad-${version}";
89
9− src = fetchurl {
10− url = "http://files.openscad.org/${name}.src.tar.gz";
11− sha256 = "0djsgi9yx1nxr2gh1kgsqw5vrbncp8v5li0p1pp02higqf1psajx";
10+# src = fetchurl {
11+# url = "http://files.openscad.org/${name}.src.tar.gz";
12+# sha256 = "0djsgi9yx1nxr2gh1kgsqw5vrbncp8v5li0p1pp02higqf1psajx";
13+# };
14+ src = fetchFromGitHub {
15+ owner = "openscad";
16+ repo = "openscad";
17+ rev = "179074dff8c23cbc0e651ce8463737df0006f4ca";
18+ sha256 = "1y63yqyd0v255liik4ff5ak6mj86d8d76w436x76hs5dk6jgpmfb";
1219 };
1320
1421 buildInputs = [
15− qt4 qmake4Hook bison flex eigen boost libGLU_combined glew opencsg cgal mpfr gmp glib
16− pkgconfig harfbuzz qscintilla gettext
17− ];
22+ bison flex eigen boost libGLU_combined glew opencsg cgal mpfr gmp glib
23+ pkgconfig harfbuzz gettext
24+ ]
25+ ++ (with qt5; [qtbase qmake])
26+ ++ (with libsForQt5; [qscintilla])
27+ ;
1828
1929 qmakeFlags = [ "VERSION=${version}" ];
2030