qt5.base: override postgresql autodetection

This commit is contained in:
Thomas Tuegel 2015-07-20 08:41:57 -05:00
parent 3f3da5ccbd
commit 17a65c4bf0

View File

@ -143,6 +143,11 @@ stdenv.mkDerivation {
-${optionalString (buildTests == false) "no"}make tests
'';
# PostgreSQL autodetection fails sporadically because Qt omits the "-lpq" flag
# if dependency paths contain the string "pq", which can occur in the hash.
# To prevent these failures, we need to override PostgreSQL detection.
PSQL_LIBS = optionalString (postgresql != null) "-L${postgresql}/lib -lpq";
propagatedBuildInputs = [
xlibs.libXcomposite libX11 libxcb libXext libXrender libXi
fontconfig freetype openssl dbus.libs glib udev libxml2 libxslt pcre