Unverified Commit 73cdc95d authored by K900's avatar K900 Committed by GitHub
Browse files

qt6: expose `darwinVersionInputs`; python312Packages.{shiboken6,pyside6}: use...

qt6: expose `darwinVersionInputs`; python312Packages.{shiboken6,pyside6}: use `qt6.darwinVersionInputs` (#354599)
parents 24e5e7f5 86060381
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ let
    in
    {

      inherit callPackage srcs;
      inherit callPackage srcs darwinVersionInputs;

      qtModule = callPackage ./qtModule.nix {
        inherit darwinVersionInputs;
+12 −23
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@
  shiboken6,
  llvmPackages,
  symlinkJoin,
  libGL,
  darwin,
}:
let
  packages = with python.pkgs.qt6; [
@@ -70,7 +68,6 @@ stdenv.mkDerivation (finalAttrs: {
  # cmake/Macros/PySideModules.cmake supposes that all Qt frameworks on macOS
  # reside in the same directory as QtCore.framework, which is not true for Nix.
  # We therefore symLink all required and optional Qt modules in one directory tree ("qt_linked").
  # Also we remove "Designer" from darwin build, due to linking failure
  postPatch =
    ''
      # Don't ignore optional Qt modules
@@ -98,26 +95,18 @@ stdenv.mkDerivation (finalAttrs: {
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ moveBuildTree ];

  buildInputs =
    python.pkgs.qt6.darwinVersionInputs
    ++ (
      if stdenv.hostPlatform.isLinux then
        # qtwebengine fails under darwin
        # see https://github.com/NixOS/nixpkgs/pull/312987
        packages ++ [ python.pkgs.qt6.qtwebengine ]
      else
      with darwin.apple_sdk_11_0.frameworks;
        [
          qt_linked
        libGL
          cups
        # frameworks
        IOKit
        DiskArbitration
        CoreBluetooth
        EventKit
        AVFoundation
        Contacts
        AGL
        AppKit
      ];
        ]
    );

  propagatedBuildInputs = [ shiboken6 ];

+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ stdenv'.mkDerivation (finalAttrs: {
    llvmPackages.llvm
    llvmPackages.libclang
    python.pkgs.qt6.qtbase
    python.pkgs.qt6.darwinVersionInputs
    python.pkgs.ninja
    python.pkgs.packaging
    python.pkgs.setuptools