forked from mirrors/nixpkgs
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:
parent
2f6f6a3855
commit
ce5616f178
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue