Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 43 lines 1.1 kB view raw
1{ mkDerivation, lib, fetchFromGitHub, cmake, antlr 2, qtbase, qttools, qscintilla, sqlite }: 3 4mkDerivation rec { 5 version = "3.10.1"; 6 name = "sqlitebrowser-${version}"; 7 8 src = fetchFromGitHub { 9 repo = "sqlitebrowser"; 10 owner = "sqlitebrowser"; 11 rev = "v${version}"; 12 sha256 = "1brzam8yv6sbdmbqsp7vglhd6wlx49g2ap8llr271zrkld4k3kar"; 13 }; 14 15 buildInputs = [ qtbase qscintilla sqlite ]; 16 17 nativeBuildInputs = [ cmake antlr qttools ]; 18 19 NIX_LDFLAGS = [ 20 "-lQt5PrintSupport" 21 ]; 22 23 enableParallelBuilding = true; 24 25 # We have to patch out Test and PrintSupport to make this work with Qt 5.9 26 # It can go when the application supports 5.9 27 postPatch = '' 28 substituteInPlace CMakeLists.txt \ 29 --replace Test "" \ 30 --replace PrintSupport "" 31 32 substituteInPlace libs/qcustomplot-source/CMakeLists.txt \ 33 --replace PrintSupport "" 34 ''; 35 36 meta = with lib; { 37 description = "DB Browser for SQLite"; 38 homepage = http://sqlitebrowser.org/; 39 license = licenses.gpl3; 40 maintainers = with maintainers; [ ma27 ]; 41 platforms = platforms.linux; # can only test on linux 42 }; 43}