Unverified Commit ee1929ff authored by Emily's avatar Emily Committed by GitHub
Browse files

qt6.qtbase: build with `apple-sdk_15`, propagate `apple-sdk_12` (#348027)

parents 1aec99ec 19d35002
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -10,7 +10,9 @@
, gst_all_1
, libglvnd
, darwin
, overrideSDK
, apple-sdk_15
, apple-sdk_12
, darwinMinVersionHook
, buildPackages
, python3
, config
@@ -28,15 +30,27 @@ let
        inherit (self) qtModule;
        inherit srcs python3 stdenv;
      });

      # Per <https://doc.qt.io/qt-6/macos.html#supported-versions>.
      # This should reflect the lowest “Target Platform” and the
      # highest “Build Environment”.
      apple-sdk_qt = apple-sdk_15;
      darwinDeploymentTargetDeps = [
        apple-sdk_12
        (darwinMinVersionHook "12.0")
      ];
    in
    {

      inherit callPackage srcs;

      qtModule = callPackage ./qtModule.nix { };
      qtModule = callPackage ./qtModule.nix {
        inherit apple-sdk_qt;
      };

      qtbase = callPackage ./modules/qtbase.nix {
        withGtk3 = !stdenv.hostPlatform.isMinGW;
        inherit apple-sdk_qt darwinDeploymentTargetDeps;
        inherit (srcs.qtbase) src version;
        patches = [
          ./patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch
+5 −9
Original line number Diff line number Diff line
@@ -67,9 +67,8 @@
, unixODBCDrivers
  # darwin
, moveBuildTree
, apple-sdk_11
, apple-sdk_14
, darwinMinVersionHook
, apple-sdk_qt
, darwinDeploymentTargetDeps
, xcbuild
  # mingw
, pkgsBuildBuild
@@ -156,10 +155,8 @@ stdenv.mkDerivation rec {
    xorg.libXtst
    xorg.xcbutilcursor
    libepoxy
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    apple-sdk_14
    (darwinMinVersionHook "11.0")
  ] ++ lib.optionals libGLSupported [
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin darwinDeploymentTargetDeps
  ++ lib.optionals libGLSupported [
    libGL
  ] ++ lib.optionals stdenv.hostPlatform.isMinGW [
    vulkan-headers
@@ -171,8 +168,7 @@ stdenv.mkDerivation rec {
  ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform libinput) [
    libinput
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    apple-sdk_11
    (darwinMinVersionHook "11.0")
    apple-sdk_qt
  ]
  ++ lib.optional withGtk3 gtk3
  ++ lib.optional (libmysqlclient != null && !stdenv.hostPlatform.isMinGW) libmysqlclient
+2 −3
Original line number Diff line number Diff line
{ lib
, stdenv
, apple-sdk_14
, apple-sdk_qt
, cmake
, ninja
, perl
@@ -22,8 +22,7 @@ stdenv.mkDerivation (args // {

  buildInputs =
    args.buildInputs or [ ]
    # Per https://doc.qt.io/qt-6/macos.html#supported-versions
    ++ lib.optionals stdenv.isDarwin [ apple-sdk_14 ];
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_qt ];
  nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ cmake ninja perl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ moveBuildTree ];
  propagatedBuildInputs =