@@ -1,32 +1,39 @@
1−{ mkDerivation, lib, fetchFromGitHub, qtbase, qttools, sqlite, cmake }:
1+{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
2+, qtbase, qttools, qscintilla, sqlite }:
23
34mkDerivation rec {
4− version = "3.10.0";
5+ version = "3.10.1";
56 name = "sqlitebrowser-${version}";
67
78 src = fetchFromGitHub {
89 repo = "sqlitebrowser";
910 owner = "sqlitebrowser";
1011 rev = "v${version}";
11− sha256 = "1fwr7p4b6glc3s0a06i7cg8l9p1mrcm4vyhyf2wi89cyg22rrf5c";
12+ sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar";
1213 };
1314
14− buildInputs = [ qtbase qttools sqlite ];
15− nativeBuildInputs = [ cmake ];
15+ buildInputs = [ qtbase qscintilla sqlite ];
1616
17− cmakeFlags = [ "-DUSE_QT5=TRUE" ];
17+ nativeBuildInputs = [ cmake antlr qttools ];
1818
19− # A regression was introduced in CMakeLists.txt on v3.9.x
20− # See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
19+ enableParallelBuilding = true;
20+
21+ # We have to patch out Test and PrintSupport to make this work with Qt 5.9
22+ # It can go when the application supports 5.9
2123 postPatch = ''
22− substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
24+ substituteInPlace CMakeLists.txt \
25+ --replace Test "" \
26+ --replace PrintSupport ""
27+
28+ substituteInPlace libs/qcustomplot-source/CMakeLists.txt \
29+ --replace PrintSupport ""
2330 '';
2431
2532 meta = with lib; {
2633 description = "DB Browser for SQLite";
2734 homepage = http://sqlitebrowser.org/;
2835 license = licenses.gpl3;
29− maintainers = [ maintainers.matthiasbeyer ];
36+ maintainers = with maintainers; [ matthiasbeyer ];
3037 platforms = platforms.linux; # can only test on linux
3138 };
3239}