2019-02-13 22:47:50 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee
|
2018-08-25 10:36:52 +02:00
|
|
|
, overrideCC, gcc6
|
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
|
|
|
|
2018-08-25 10:36:52 +02:00
|
|
|
(if stdenv.isAarch64 then overrideCC stdenv gcc6 else stdenv).mkDerivation rec {
|
2018-12-11 23:42:28 +01:00
|
|
|
pname = "libgda";
|
2019-05-12 03:31:20 +02:00
|
|
|
version = "5.2.9";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-11 23:42:28 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-05-12 03:31:20 +02:00
|
|
|
sha256 = "16vxv2qvysh22s8h9h6irx96sacagxkz0i4qgi1wc6ibly6fvjjr";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
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-12-23 18:58:16 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool itstool libxml2 gobject-introspection vala ];
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = with stdenv.lib; [ gtk3 openssl libgee ]
|
2018-02-24 12:23:08 +01:00
|
|
|
++ optional (mysqlSupport) mysql.connector-c
|
|
|
|
++ optional (postgresSupport) postgresql;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-12-11 23:42:28 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Database access library";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://www.gnome-db.org/;
|
2016-09-18 21:35:23 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|