2017-05-17 20:26:11 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qtbase, qttools, sqlite, cmake }:
|
2015-07-13 16:45:08 +01:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
mkDerivation rec {
|
2017-09-13 17:28:00 +01:00
|
|
|
version = "3.10.0";
|
2015-07-13 16:45:08 +01:00
|
|
|
name = "sqlitebrowser-${version}";
|
|
|
|
|
2016-03-08 01:29:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "sqlitebrowser";
|
|
|
|
owner = "sqlitebrowser";
|
|
|
|
rev = "v${version}";
|
2017-09-13 17:28:00 +01:00
|
|
|
sha256 = "1fwr7p4b6glc3s0a06i7cg8l9p1mrcm4vyhyf2wi89cyg22rrf5c";
|
2015-07-13 16:45:08 +01:00
|
|
|
};
|
|
|
|
|
2017-05-03 16:00:04 +01:00
|
|
|
buildInputs = [ qtbase qttools sqlite ];
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2017-03-08 23:58:00 +00:00
|
|
|
cmakeFlags = [ "-DUSE_QT5=TRUE" ];
|
2017-05-17 20:26:11 +01:00
|
|
|
|
2017-03-08 23:58:00 +00:00
|
|
|
# A regression was introduced in CMakeLists.txt on v3.9.x
|
|
|
|
# See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
|
2017-05-03 16:00:04 +01:00
|
|
|
postPatch = ''
|
2017-03-08 23:58:00 +00:00
|
|
|
substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
|
|
|
|
'';
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
meta = with lib; {
|
2015-07-13 16:45:08 +01:00
|
|
|
description = "DB Browser for SQLite";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://sqlitebrowser.org/;
|
2015-07-13 16:45:08 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.linux; # can only test on linux
|
|
|
|
};
|
|
|
|
}
|