qtbase: Preserve configuration options on Qt < 5.15

This commit is contained in:
Thomas Tuegel 2020-09-05 16:22:24 -05:00
parent d6a57a8f4d
commit b3d72930d8

View file

@ -296,6 +296,7 @@ stdenv.mkDerivation {
''-${lib.optionalString (!buildExamples) "no"}make examples''
''-${lib.optionalString (!buildTests) "no"}make tests''
]
++ lib.optional (compareVersion "5.15.0" < 0) "-v"
++ (
if stdenv.isDarwin
@ -310,7 +311,9 @@ stdenv.mkDerivation {
else
[
"-${lib.optionalString (compareVersion "5.9.0" < 0) "no-"}rpath"
]
++ lib.optional (compareVersion "5.15.0" < 0) "-system-xcb"
++ [
"-xcb"
"-qpa xcb"
"-L" "${libX11.out}/lib"
@ -325,6 +328,9 @@ stdenv.mkDerivation {
''-${lib.optionalString (cups == null) "no-"}cups''
"-dbus-linked"
"-glib"
]
++ lib.optional (compareVersion "5.15.0" < 0) "-system-libjpeg"
++ [
"-system-libpng"
]
++ lib.optional withGtk3 "-gtk"