1{ mkDerivation, lib, fetchFromGitHub, cmake, antlr 2, qtbase, qttools, qscintilla, sqlite }: 3 4mkDerivation rec { 5 version = "3.10.1"; 6 name = "sqlitebrowser-${version}"; 7 8 src = fetchFromGitHub { 9 repo = "sqlitebrowser"; 10 owner = "sqlitebrowser"; 11 rev = "v${version}"; 12 sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar"; 13 }; 14 15 buildInputs = [ qtbase qscintilla sqlite ]; 16 17 nativeBuildInputs = [ cmake antlr qttools ]; 18 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 23 postPatch = '' 24 substituteInPlace CMakeLists.txt \ 25 --replace Test "" \ 26 --replace PrintSupport "" 27 28 substituteInPlace libs/qcustomplot-source/CMakeLists.txt \ 29 --replace PrintSupport "" 30 ''; 31 32 meta = with lib; { 33 description = "DB Browser for SQLite"; 34 homepage = http://sqlitebrowser.org/; 35 license = licenses.gpl3; 36 maintainers = with maintainers; [ ma27 ]; 37 platforms = platforms.linux; # can only test on linux 38 }; 39}