git.iko.soy/typeable/nixpkgs
on master help sign in
qt5.base: override postgresql autodetection
commit17a65c4bf043aaa35b6224a27a3d0a9df546ca85 authorThomas Tuegel <ttuegel@gmail.com> dateMon 20 Jul 2015, 08:41 (11 years ago) parent3f3da5c
1 file changed+5
pkgs/development/libraries/qt-5/5.4/qtbase.nix+5
pkgs/development/libraries/qt-5/5.4/qtbase.nix+5
@@ -143,6 +143,11 @@ stdenv.mkDerivation {
143143 -${optionalString (buildTests == false) "no"}make tests
144144 '';
145145
146+ # PostgreSQL autodetection fails sporadically because Qt omits the "-lpq" flag
147+ # if dependency paths contain the string "pq", which can occur in the hash.
148+ # To prevent these failures, we need to override PostgreSQL detection.
149+ PSQL_LIBS = optionalString (postgresql != null) "-L${postgresql}/lib -lpq";
150+
146151 propagatedBuildInputs = [
147152 xlibs.libXcomposite libX11 libxcb libXext libXrender libXi
148153 fontconfig freetype openssl dbus.libs glib udev libxml2 libxslt pcre