@@ -1,6 +1,8 @@
11{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty
22, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
3−, minimal ? false, qt4Support ? false, qt4 ? null, qt5Support ? false, qtbase ? null
3+, minimal ? false
4+, qt4Support ? false, qt4 ? null
5+, qt5Support ? false, qtbase ? null
46, utils ? false, suffix ? "glib"
57}:
68
@@ -31,6 +33,9 @@ stdenv.mkDerivation rec {
3133
3234 NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ];
3335
36+ # Any package depending on Qt >= 5.7 must build using the C++11 standard.
37+ CXXFLAGS = lib.optional qt5Support "-std=c++11";
38+
3439 configureFlags = with lib;
3540 [
3641 "--enable-xpdf-headers"