Merge pull request #56034 from peterhoeg/u/sqlite

qscintilla: 2.9.4 -> 2.11.2 and sqlitebrowser: 3.11.2
This commit is contained in:
Thomas Tuegel
2019-09-28 13:26:34 -05:00
committed by GitHub
2 changed files with 37 additions and 38 deletions

View File

@@ -1,25 +1,20 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, antlr
, qtbase, qttools, sqlite }:
, qtbase, qttools, qscintilla, sqlite }:
mkDerivation rec {
version = "3.11.2";
pname = "sqlitebrowser";
version = "3.11.2";
src = fetchFromGitHub {
repo = pname;
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0ydd5fg76d5d23byac1f7f8mzx3brmd0cnnkd58qpmlzi7p9hcvx";
};
buildInputs = [ qtbase sqlite ];
buildInputs = [ antlr qtbase qscintilla sqlite ];
nativeBuildInputs = [ cmake antlr qttools ];
# 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" ];
nativeBuildInputs = [ cmake qttools ];
NIX_LDFLAGS = [
"-lQt5PrintSupport"
@@ -32,6 +27,6 @@ mkDerivation rec {
homepage = http://sqlitebrowser.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux; # can only test on linux
platforms = platforms.unix;
};
}