Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation 2, lib 3, fetchurl 4, fetchpatch 5, extra-cmake-modules 6, qtbase 7, qttranslations 8, kcoreaddons 9, python3 10, sqlite 11, postgresql 12, libmysqlclient 13}: 14 15mkDerivation rec { 16 pname = "kdb"; 17 version = "3.2.0"; 18 19 src = fetchurl { 20 url = "mirror://kde/stable/${pname}/src/${pname}-${version}.tar.xz"; 21 sha256 = "0s909x34a56n3xwhqz27irl2gbzidax0685w2kf34f0liny872cg"; 22 }; 23 24 patches = [ 25 # fix build with newer QT versions 26 (fetchpatch { 27 url = "https://github.com/KDE/kdb/commit/b36d74f13a1421437a725fb74502c993c359392a.patch"; 28 sha256 = "sha256-ENMZTUZ3yCKUhHPMUcDe1cMY2GLBz0G3ZvMRyj8Hfrw="; 29 }) 30 # fix build with newer posgresql versions 31 (fetchpatch { 32 url = "https://github.com/KDE/kdb/commit/40cdaea4d7824cc1b0d26e6ad2dcb61fa2077911.patch"; 33 sha256 = "sha256-cZpX6L/NZX3vztnh0s2+v4J7kBcKgUdecY53LRp8CwM="; 34 }) 35 ]; 36 37 nativeBuildInputs = [ extra-cmake-modules ]; 38 39 buildInputs = [ qttranslations kcoreaddons python3 sqlite postgresql libmysqlclient ]; 40 41 propagatedBuildInputs = [ qtbase ]; 42 43 meta = with lib; { 44 description = "A database connectivity and creation framework for various database vendors"; 45 license = licenses.lgpl2; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ zraexy ]; 48 }; 49}