Merge pull request #108799 from SuperSandro2000/fix-collection

This commit is contained in:
Sandro
2021-01-10 20:04:46 +01:00
committed by GitHub
13 changed files with 65 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee
, overrideCC, gcc6
{ stdenv, fetchurl, pkg-config, intltool, itstool, libxml2, gtk3, openssl, gnome3, gobject-introspection, vala, libgee
, overrideCC, gcc6, fetchpatch, autoreconfHook, gtk-doc, autoconf-archive, yelp-tools
, mysqlSupport ? false, libmysqlclient ? null
, postgresSupport ? false, postgresql ? null
}:
@@ -15,8 +15,16 @@ assert postgresSupport -> postgresql != null;
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1j1l4dwjgw6w4d1v4bl5a4kwyj7bcih8mj700ywm7xakh1xxyv3g";
};
patches = [
# fix compile error with mysql
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/libgda/-/commit/9859479884fad5f39e6c37e8995e57c28b11b1b9.diff";
sha256 = "158sncc5bg9lkri1wb0i1ri1nhx4c34rzi47gbfkwphlp7qd4qqv";
})
];
configureFlags = with stdenv.lib; [
"--enable-gi-system-install=no"
"--with-mysql=${if mysqlSupport then "yes" else "no"}"
"--with-postgres=${if postgresSupport then "yes" else "no"}"
@@ -32,7 +40,7 @@ assert postgresSupport -> postgresql != null;
hardeningDisable = [ "format" ];
nativeBuildInputs = [ pkgconfig intltool itstool libxml2 gobject-introspection vala ];
nativeBuildInputs = [ pkg-config intltool itstool libxml2 gobject-introspection vala autoreconfHook gtk-doc autoconf-archive yelp-tools ];
buildInputs = with stdenv.lib; [ gtk3 openssl libgee ]
++ optional (mysqlSupport) libmysqlclient
++ optional (postgresSupport) postgresql;