mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
sqlitebrowser: 3.10.0 -> 3.10.1 and make it work with Qt 5.9
This commit is contained in:
parent
cfafd6f5a8
commit
dd18e063ef
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -7588,7 +7588,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{ };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user