gnome3.libgda: explicitly enable or disable mysql and postgres

This prevents an issue where mysql and postgres support can be
auto-detected by the configure scripts, resulting in a broken build or a
build that cannot be ran on a different computer.
This commit is contained in:
Sebastien Lavoie 2019-10-15 13:58:08 -04:00
parent 2f6f6a3855
commit ce5616f178
No known key found for this signature in database
GPG Key ID: 706C5F8A43AD63B9

View File

@ -15,9 +15,11 @@ assert postgresSupport -> postgresql != null;
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");
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"}"
];
enableParallelBuilding = true;