nixpkgs/pkgs/development/libraries/libgda/default.nix

45 lines
1.5 KiB
Nix
Raw Normal View History

2019-02-13 21:47:50 +00:00
{ stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee
, overrideCC, gcc6
, mysqlSupport ? false, libmysqlclient ? null
, postgresSupport ? false, postgresql ? null
}:
assert mysqlSupport -> libmysqlclient != null;
assert postgresSupport -> postgresql != null;
(if stdenv.isAarch64 then overrideCC stdenv gcc6 else stdenv).mkDerivation rec {
2018-12-11 22:42:28 +00:00
pname = "libgda";
version = "5.2.9";
src = fetchurl {
2018-12-11 22:42:28 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "16vxv2qvysh22s8h9h6irx96sacagxkz0i4qgi1wc6ibly6fvjjr";
};
configureFlags = with stdenv.lib; [ "--enable-gi-system-install=no" ]
++ (optional (mysqlSupport) "--with-mysql=yes")
++ (optional (postgresSupport) "--with-postgres=yes");
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
2018-12-23 17:58:16 +00:00
nativeBuildInputs = [ pkgconfig intltool itstool libxml2 gobject-introspection vala ];
2019-02-13 21:47:50 +00:00
buildInputs = with stdenv.lib; [ gtk3 openssl libgee ]
++ optional (mysqlSupport) libmysqlclient
++ optional (postgresSupport) postgresql;
2018-12-11 22:42:28 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Database access library";
homepage = https://www.gnome-db.org/;
license = [ licenses.lgpl2 licenses.gpl2 ];
2018-02-25 20:26:30 +00:00
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}