qtbase: avoid rebuilding versions < 5.15

This commit is contained in:
Thomas Tuegel 2021-10-31 11:58:38 -05:00
parent 27b6cf2445
commit 5b22f14d38
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -115,7 +115,7 @@ stdenv.mkDerivation {
sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5CoreMacros.cmake
sed -i 's/NO_DEFAULT_PATH//' src/gui/Qt5GuiConfigExtras.cmake.in
sed -i '/PATHS.*NO_DEFAULT_PATH/ d' mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
'' + lib.optionalString (compareVersion "5.15.0" >= 0) ''
patchShebangs ./bin
'' + (
if stdenv.isDarwin then ''
@ -151,10 +151,8 @@ stdenv.mkDerivation {
''}
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QT_PLUGIN_PREFIX=\"$qtPluginPrefix\""
${lib.optionalString (compareVersion "5.15.0" >= 0) ''
'' + lib.optionalString (compareVersion "5.15.0" >= 0) ''
./bin/syncqt.pl -version $version
''}
'';
postConfigure = ''