Skip to content

Commit

Permalink
Merge pull request #31120 from peterhoeg/f/sqlite
Browse files Browse the repository at this point in the history
sqlitebrowser: 3.10.0 -> 3.10.1 and make it work with Qt 5.9
  • Loading branch information
peterhoeg committed Nov 7, 2017
2 parents 471175e + dd18e06 commit 376516f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions pkgs/development/tools/database/sqlitebrowser/default.nix
@@ -1,32 +1,39 @@
{ mkDerivation, lib, fetchFromGitHub, qtbase, qttools, sqlite, cmake }:
{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
, qtbase, qttools, qscintilla, sqlite }:

mkDerivation rec {
version = "3.10.0";
version = "3.10.1";
name = "sqlitebrowser-${version}";

src = fetchFromGitHub {
repo = "sqlitebrowser";
owner = "sqlitebrowser";
rev = "v${version}";
sha256 = "1fwr7p4b6glc3s0a06i7cg8l9p1mrcm4vyhyf2wi89cyg22rrf5c";
sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar";
};

buildInputs = [ qtbase qttools sqlite ];
nativeBuildInputs = [ cmake ];
buildInputs = [ qtbase qscintilla sqlite ];

cmakeFlags = [ "-DUSE_QT5=TRUE" ];
nativeBuildInputs = [ cmake antlr qttools ];

# A regression was introduced in CMakeLists.txt on v3.9.x
# See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
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
postPatch = ''
substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
substituteInPlace CMakeLists.txt \
--replace Test "" \
--replace PrintSupport ""
substituteInPlace libs/qcustomplot-source/CMakeLists.txt \
--replace PrintSupport ""
'';

meta = with lib; {
description = "DB Browser for SQLite";
homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = [ maintainers.matthiasbeyer ];
maintainers = with maintainers; [ matthiasbeyer ];
platforms = platforms.linux; # can only test on linux
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -7593,7 +7593,7 @@ with pkgs;
flex = flex_2_5_35;
};

sqlitebrowser = libsForQt56.callPackage ../development/tools/database/sqlitebrowser { };
sqlitebrowser = libsForQt5.callPackage ../development/tools/database/sqlitebrowser { };

sselp = callPackage ../tools/X11/sselp{ };

Expand Down

0 comments on commit 376516f

Please sign in to comment.