qt6: disable xcode version check on Darwin

We use xcbuild, not official xcode.
This commit is contained in:
K900
2025-02-05 11:07:55 +03:00
parent b497963b02
commit c51a4944d1
2 changed files with 4 additions and 0 deletions
@@ -275,6 +275,7 @@ stdenv.mkDerivation rec {
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"-DQT_FEATURE_rpath=OFF"
"-DQT_NO_XCODE_MIN_VERSION_CHECK=ON"
]
++ lib.optionals isCrossBuild [
"-DQT_HOST_PATH=${pkgsBuildBuild.qt6.qtbase}"
@@ -38,6 +38,9 @@ stdenv.mkDerivation (
(lib.warnIf (args ? qtInputs) "qt6.qtModule's qtInputs argument is deprecated" args.qtInputs or [ ])
++ (args.propagatedBuildInputs or [ ]);
cmakeFlags = args.cmakeFlags or [ ]
++ lib.optional stdenv.hostPlatform.isDarwin "-DQT_NO_XCODE_MIN_VERSION_CHECK=ON";
moveToDev = false;
outputs =