summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-07-20 15:03:52 -0500
committerThomas Tuegel <ttuegel@gmail.com>2015-07-20 15:03:52 -0500
commit4d36b10f90a7fcf794bf3172ed6ffa7e0df147db (patch)
tree0269f01a68cd88f7da5ff0be822b988d188d43e1 /pkgs/development/libraries
parent5eae46fc93cb296763b265b7006f87a7b1cdcc2e (diff)
downloadnixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar.gz
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar.bz2
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar.lz
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar.xz
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.tar.zst
nixlib-4d36b10f90a7fcf794bf3172ed6ffa7e0df147db.zip
qt53: override postgresql autodetection
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/qt-5/5.3/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-5/5.3/default.nix b/pkgs/development/libraries/qt-5/5.3/default.nix
index 693f62a63ebd..0e606d03db20 100644
--- a/pkgs/development/libraries/qt-5/5.3/default.nix
+++ b/pkgs/development/libraries/qt-5/5.3/default.nix
@@ -144,6 +144,11 @@ stdenv.mkDerivation rec {
     -${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