2017-11-02 07:16:24 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
|
|
|
|
, qtbase, qttools, qscintilla, sqlite }:
|
2015-07-13 16:45:08 +01:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
mkDerivation rec {
|
2017-11-02 07:16:24 +00:00
|
|
|
version = "3.10.1";
|
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-11-02 07:16:24 +00:00
|
|
|
sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar";
|
2015-07-13 16:45:08 +01:00
|
|
|
};
|
|
|
|
|
2017-11-02 07:16:24 +00:00
|
|
|
buildInputs = [ qtbase qscintilla sqlite ];
|
2017-05-17 20:26:11 +01:00
|
|
|
|
2017-11-02 07:16:24 +00:00
|
|
|
nativeBuildInputs = [ cmake antlr qttools ];
|
2017-05-17 20:26:11 +01:00
|
|
|
|
2019-01-04 19:33:51 +00:00
|
|
|
NIX_LDFLAGS = [
|
|
|
|
"-lQt5PrintSupport"
|
|
|
|
];
|
|
|
|
|
2017-11-02 07:16:24 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# We have to patch out Test and PrintSupport to make this work with Qt 5.9
|
|
|
|
# It can go when the application supports 5.9
|
2017-05-03 16:00:04 +01:00
|
|
|
postPatch = ''
|
2017-11-02 07:16:24 +00:00
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace Test "" \
|
|
|
|
--replace PrintSupport ""
|
|
|
|
|
|
|
|
substituteInPlace libs/qcustomplot-source/CMakeLists.txt \
|
|
|
|
--replace PrintSupport ""
|
2017-03-08 23:58:00 +00:00
|
|
|
'';
|
|
|
|
|
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;
|
2018-07-05 11:11:19 +01:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2015-07-13 16:45:08 +01:00
|
|
|
platforms = platforms.linux; # can only test on linux
|
|
|
|
};
|
|
|
|
}
|