Skip to content

Commit

Permalink
sqlitebrowser: 3.8.0 -> 3.9.1
Browse files Browse the repository at this point in the history
Now uses Qt5
The file CMakeLists.txt needs patching - known issue upstream
  • Loading branch information
c0bw3b committed Mar 8, 2017
1 parent f1ae64b commit 80dbc4d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions pkgs/development/tools/database/sqlitebrowser/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
{ stdenv, fetchFromGitHub, qt4, sqlite, cmake }:
{ stdenv, fetchFromGitHub, qt5, sqlite, cmake }:

stdenv.mkDerivation rec {
version = "3.8.0";
version = "3.9.1";
name = "sqlitebrowser-${version}";

src = fetchFromGitHub {
repo = "sqlitebrowser";
owner = "sqlitebrowser";
rev = "v${version}";
sha256 = "009yaamf6f654dl796f1gmj3rb34d55w87snsfgk33gpy6x19ccp";
sha256 = "1s7f2d7wx2i68x60z7wdws3il6m83k5n5w5wyjvr0mz0mih0s150";
};

buildInputs = [ qt4 sqlite cmake ];
buildInputs = [ qt5.qtbase qt5.qttools sqlite cmake ];

enableParallelBuilding = true;

cmakeFlags = [ "-DUSE_QT5=TRUE" ];

# A regression was introduced in CMakeLists.txt on v3.9.x
# See https://github.com/sqlitebrowser/sqlitebrowser/issues/832 and issues/755
patchPhase = ''
substituteInPlace CMakeLists.txt --replace 'project("DB Browser for SQLite")' 'project(sqlitebrowser)'
'';


meta = with stdenv.lib; {
description = "DB Browser for SQLite";
Expand All @@ -21,4 +32,3 @@ stdenv.mkDerivation rec {
platforms = platforms.linux; # can only test on linux
};
}

0 comments on commit 80dbc4d

Please sign in to comment.