diff --git a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix index 9329008e29a6..7410132dd38f 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix @@ -263,6 +263,9 @@ stdenv.mkDerivation rec { "-DQT_FEATURE_system_sqlite=ON" "-DQT_FEATURE_openssl_linked=ON" "-DQT_FEATURE_vulkan=ON" + # don't leak OS version into the final output + # https://bugreports.qt.io/browse/QTBUG-136060 + "-DCMAKE_SYSTEM_VERSION=" ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ "-DQT_FEATURE_sctp=ON" diff --git a/pkgs/development/libraries/qt-6/qtModule.nix b/pkgs/development/libraries/qt-6/qtModule.nix index d21056419477..e5089813c39a 100644 --- a/pkgs/development/libraries/qt-6/qtModule.nix +++ b/pkgs/development/libraries/qt-6/qtModule.nix @@ -39,8 +39,11 @@ stdenv.mkDerivation ( ++ (args.propagatedBuildInputs or [ ]); cmakeFlags = - args.cmakeFlags or [ ] - ++ lib.optional stdenv.hostPlatform.isDarwin "-DQT_NO_XCODE_MIN_VERSION_CHECK=ON"; + # don't leak OS version into the final output + # https://bugreports.qt.io/browse/QTBUG-136060 + [ "-DCMAKE_SYSTEM_VERSION=" ] + ++ lib.optional stdenv.hostPlatform.isDarwin "-DQT_NO_XCODE_MIN_VERSION_CHECK=ON" + ++ args.cmakeFlags or [ ]; moveToDev = false;