2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, qt4, qscintilla }:
|
2014-11-22 12:23:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sqliteman";
|
2015-05-14 16:18:17 +01:00
|
|
|
version = "1.2.0";
|
2014-11-22 12:23:16 +00:00
|
|
|
|
2015-05-14 16:18:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "sqliteman";
|
|
|
|
owner = "pvanek";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1blzyh1646955d580f71slgdvz0nqx0qacryx0jc9w02yrag17cs";
|
2014-11-22 12:23:16 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ qt4 qscintilla ];
|
2014-11-22 12:23:16 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i 's,m_file(0),m_file(QString()),' Sqliteman/sqliteman/main.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd Sqliteman
|
|
|
|
sed -i 's,/usr/include/Qsci,${qscintilla}/include/Qsci,' cmake/modules/FindQScintilla.cmake
|
|
|
|
sed -i 's,PATHS ''${QT_LIBRARY_DIR},PATHS ${qscintilla}/libs,' cmake/modules/FindQScintilla.cmake
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-12-30 02:31:03 +00:00
|
|
|
description = "A simple but powerful Sqlite3 GUI database manager";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://sqliteman.yarpen.cz/";
|
2014-11-22 12:23:16 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.eikek ];
|
|
|
|
};
|
|
|
|
}
|