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

38 lines
1.0 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
, qtbase, qttools, sqlite }:
2017-05-17 19:26:11 +00:00
mkDerivation rec {
version = "3.11.2";
pname = "sqlitebrowser";
2016-03-08 01:29:56 +00:00
src = fetchFromGitHub {
repo = pname;
owner = pname;
2016-03-08 01:29:56 +00:00
rev = "v${version}";
sha256 = "0ydd5fg76d5d23byac1f7f8mzx3brmd0cnnkd58qpmlzi7p9hcvx";
};
buildInputs = [ qtbase sqlite ];
2017-05-17 19:26:11 +00:00
nativeBuildInputs = [ cmake antlr qttools ];
2017-05-17 19:26:11 +00: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" ];
NIX_LDFLAGS = [
"-lQt5PrintSupport"
];
enableParallelBuilding = true;
2017-05-17 19:26:11 +00:00
meta = with lib; {
description = "DB Browser for SQLite";
homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux; # can only test on linux
};
}