nixpkgs/pkgs/development/tools/database/sqlitebrowser/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
, qtbase, qttools, qscintilla, sqlite }:
2017-05-17 20:26:11 +01:00
mkDerivation rec {
version = "3.10.1";
name = "sqlitebrowser-${version}";
2016-03-08 01:29:56 +00:00
src = fetchFromGitHub {
repo = "sqlitebrowser";
owner = "sqlitebrowser";
rev = "v${version}";
sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar";
};
buildInputs = [ qtbase qscintilla sqlite ];
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ cmake antlr qttools ];
2017-05-17 20:26:11 +01: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 = ''
substituteInPlace CMakeLists.txt \
--replace Test "" \
--replace PrintSupport ""
substituteInPlace libs/qcustomplot-source/CMakeLists.txt \
--replace PrintSupport ""
'';
2017-05-17 20:26:11 +01:00
meta = with lib; {
description = "DB Browser for SQLite";
homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ matthiasbeyer ];
platforms = platforms.linux; # can only test on linux
};
}