Merge branch 'qt5-psql'
This commit is contained in:
@@ -22,6 +22,8 @@ let
|
|||||||
ver = "${v_maj}.${v_min}";
|
ver = "${v_maj}.${v_min}";
|
||||||
in
|
in
|
||||||
|
|
||||||
|
let system-x86_64 = elem stdenv.system platforms.x86_64; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "qt-${ver}";
|
name = "qt-${ver}";
|
||||||
|
|
||||||
@@ -126,6 +128,16 @@ stdenv.mkDerivation rec {
|
|||||||
-no-linuxfb
|
-no-linuxfb
|
||||||
-no-kms
|
-no-kms
|
||||||
|
|
||||||
|
${optionalString (!system-x86_64) "-no-sse2"}
|
||||||
|
-no-sse3
|
||||||
|
-no-ssse3
|
||||||
|
-no-sse4.1
|
||||||
|
-no-sse4.2
|
||||||
|
-no-avx
|
||||||
|
-no-avx2
|
||||||
|
-no-mips_dsp
|
||||||
|
-no-mips_dspr2
|
||||||
|
|
||||||
-system-zlib
|
-system-zlib
|
||||||
-system-libpng
|
-system-libpng
|
||||||
-system-libjpeg
|
-system-libjpeg
|
||||||
@@ -144,6 +156,11 @@ stdenv.mkDerivation rec {
|
|||||||
-${optionalString (buildTests == false) "no"}make tests
|
-${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 = [
|
propagatedBuildInputs = [
|
||||||
xlibs.libXcomposite libX11 libxcb libXext libXrender libXi
|
xlibs.libXcomposite libX11 libxcb libXext libXrender libXi
|
||||||
fontconfig freetype openssl dbus.libs glib udev libxml2 libxslt pcre
|
fontconfig freetype openssl dbus.libs glib udev libxml2 libxslt pcre
|
||||||
|
|||||||
Reference in New Issue
Block a user