1{ lib, stdenv, fetchFromGitHub, cmake, qt4, qscintilla }:
2
3stdenv.mkDerivation rec {
4 pname = "sqliteman";
5 version = "1.2.0";
6
7 src = fetchFromGitHub {
8 repo = "sqliteman";
9 owner = "pvanek";
10 rev = version;
11 sha256 = "1blzyh1646955d580f71slgdvz0nqx0qacryx0jc9w02yrag17cs";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ qt4 qscintilla ];
16
17 prePatch = ''
18 sed -i 's,m_file(0),m_file(QString()),' Sqliteman/sqliteman/main.cpp
19 '';
20
21 preConfigure = ''
22 cd Sqliteman
23 sed -i 's,/usr/include/Qsci,${qscintilla}/include/Qsci,' cmake/modules/FindQScintilla.cmake
24 sed -i 's,PATHS ''${QT_LIBRARY_DIR},PATHS ${qscintilla}/libs,' cmake/modules/FindQScintilla.cmake
25 '';
26
27 meta = with lib; {
28 description = "A simple but powerful Sqlite3 GUI database manager";
29 homepage = "http://sqliteman.yarpen.cz/";
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 maintainers = [ maintainers.eikek ];
33 };
34}