2017-11-02 00:16:24 -07:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
|
2019-05-11 04:37:19 -07:00
|
|
|
, qtbase, qttools, sqlite }:
|
2015-07-13 08:45:08 -07:00
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
mkDerivation rec {
|
2019-05-11 04:37:19 -07:00
|
|
|
version = "3.11.2";
|
|
|
|
pname = "sqlitebrowser";
|
2015-07-13 08:45:08 -07:00
|
|
|
|
2016-03-07 17:29:56 -08:00
|
|
|
src = fetchFromGitHub {
|
2019-05-11 04:37:19 -07:00
|
|
|
repo = pname;
|
|
|
|
owner = pname;
|
2016-03-07 17:29:56 -08:00
|
|
|
rev = "v${version}";
|
2019-05-11 04:37:19 -07:00
|
|
|
sha256 = "0ydd5fg76d5d23byac1f7f8mzx3brmd0cnnkd58qpmlzi7p9hcvx";
|
2015-07-13 08:45:08 -07:00
|
|
|
};
|
|
|
|
|
2019-05-11 04:37:19 -07:00
|
|
|
buildInputs = [ qtbase sqlite ];
|
2017-05-17 12:26:11 -07:00
|
|
|
|
2017-11-02 00:16:24 -07:00
|
|
|
nativeBuildInputs = [ cmake antlr qttools ];
|
2017-05-17 12:26:11 -07:00
|
|
|
|
2019-05-11 04:37:19 -07:00
|
|
|
# Use internal `qscintilla` rather than our package to fix the build
|
|
|
|
# (https://github.com/sqlitebrowser/sqlitebrowser/issues/1348#issuecomment-374170936).
|
|
|
|
# This can probably be removed when https://github.com/NixOS/nixpkgs/pull/56034 is merged.
|
|
|
|
cmakeFlags = [ "-DFORCE_INTERNAL_QSCINTILLA=ON" ];
|
|
|
|
|
2019-01-04 11:33:51 -08:00
|
|
|
NIX_LDFLAGS = [
|
|
|
|
"-lQt5PrintSupport"
|
|
|
|
];
|
|
|
|
|
2017-11-02 00:16:24 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
meta = with lib; {
|
2015-07-13 08:45:08 -07:00
|
|
|
description = "DB Browser for SQLite";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = http://sqlitebrowser.org/;
|
2015-07-13 08:45:08 -07:00
|
|
|
license = licenses.gpl3;
|
2018-07-05 03:11:19 -07:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2015-07-13 08:45:08 -07:00
|
|
|
platforms = platforms.linux; # can only test on linux
|
|
|
|
};
|
|
|
|
}
|