2021-12-19 05:19:37 +01:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, extra-cmake-modules
|
|
|
|
, qtbase
|
|
|
|
, qttranslations
|
|
|
|
, kcoreaddons
|
|
|
|
, python2
|
|
|
|
, sqlite
|
|
|
|
, postgresql
|
|
|
|
, libmysqlclient
|
2017-09-09 09:38:19 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "kdb";
|
2019-04-15 04:14:37 +02:00
|
|
|
version = "3.2.0";
|
2017-09-09 09:38:19 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://kde/stable/${pname}/src/${pname}-${version}.tar.xz";
|
2019-04-15 04:14:37 +02:00
|
|
|
sha256 = "0s909x34a56n3xwhqz27irl2gbzidax0685w2kf34f0liny872cg";
|
2017-09-09 09:38:19 +02:00
|
|
|
};
|
|
|
|
|
2021-12-19 05:19:37 +01:00
|
|
|
patches = [
|
|
|
|
# fix build with newer QT versions
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/KDE/kdb/commit/b36d74f13a1421437a725fb74502c993c359392a.patch";
|
|
|
|
sha256 = "sha256-ENMZTUZ3yCKUhHPMUcDe1cMY2GLBz0G3ZvMRyj8Hfrw=";
|
|
|
|
})
|
|
|
|
# fix build with newer posgresql versions
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/KDE/kdb/commit/40cdaea4d7824cc1b0d26e6ad2dcb61fa2077911.patch";
|
|
|
|
sha256 = "sha256-cZpX6L/NZX3vztnh0s2+v4J7kBcKgUdecY53LRp8CwM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-09 09:38:19 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
|
|
|
2019-09-22 09:38:09 +02:00
|
|
|
buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql libmysqlclient ];
|
2017-09-09 09:38:19 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A database connectivity and creation framework for various database vendors";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ zraexy ];
|
|
|
|
};
|
|
|
|
}
|