2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3
|
2018-02-24 12:23:08 +01:00
|
|
|
, mysqlSupport ? false, mysql ? null
|
|
|
|
, postgresSupport ? false, postgresql ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert mysqlSupport -> mysql != null;
|
|
|
|
assert postgresSupport -> postgresql != null;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "libgda-${version}";
|
|
|
|
version = "5.2.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/libgda/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
|
|
sha256 = "2cee38dd583ccbaa5bdf6c01ca5f88cc08758b9b144938a51a478eb2684b765e";
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "libgda"; attrPath = "gnome3.libgda"; };
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-09-16 23:02:59 +02:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
name = "libgda-fix-encoding-of-copyright-headers.patch";
|
|
|
|
url = https://bug787685.bugzilla-attachments.gnome.org/attachment.cgi?id=359901;
|
|
|
|
sha256 = "11qj7f7zsiw8jy18vlwz2prlxpg4iq350sws3qwfwsv0lnmncmfq";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-02-24 12:23:08 +01:00
|
|
|
configureFlags = with stdenv.lib; [ "--enable-gi-system-install=no" ]
|
|
|
|
++ (optional (mysqlSupport) "--with-mysql=yes")
|
|
|
|
++ (optional (postgresSupport) "--with-postgres=yes");
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2018-02-24 12:23:08 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool itstool libxml2 ];
|
|
|
|
buildInputs = with stdenv.lib; [ gtk3 openssl ]
|
|
|
|
++ optional (mysqlSupport) mysql.connector-c
|
|
|
|
++ optional (postgresSupport) postgresql;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Database access library";
|
|
|
|
homepage = http://www.gnome-db.org/;
|
|
|
|
license = [ licenses.lgpl2 licenses.gpl2 ];
|
2018-02-25 21:26:30 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|