Skip to content

Commit

Permalink
[Backport release-24.11] python312Packages.pyside6: fix eval on linux (
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Nov 16, 2024
2 parents f45667d + d796aff commit 057f63b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
25 changes: 12 additions & 13 deletions pkgs/development/python-modules/pyside6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,18 @@ stdenv.mkDerivation (finalAttrs: {
pythonImportsCheckHook
] ++ 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
[
qt_linked
cups
]
);
buildInputs = (
if stdenv.hostPlatform.isLinux then
# qtwebengine fails under darwin
# see https://github.com/NixOS/nixpkgs/pull/312987
packages ++ [ python.pkgs.qt6.qtwebengine ]
else
python.pkgs.qt6.darwinVersionInputs
++ [
qt_linked
cups
]
);

propagatedBuildInputs = [ shiboken6 ];

Expand Down
21 changes: 12 additions & 9 deletions pkgs/development/python-modules/shiboken6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ stdenv'.mkDerivation (finalAttrs: {
(python.pythonOnBuildForHost.withPackages (ps: [ ps.setuptools ]))
] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];

buildInputs = [
llvmPackages.llvm
llvmPackages.libclang
python.pkgs.qt6.qtbase
python.pkgs.qt6.darwinVersionInputs
python.pkgs.ninja
python.pkgs.packaging
python.pkgs.setuptools
];
buildInputs =
[
llvmPackages.llvm
llvmPackages.libclang
python.pkgs.qt6.qtbase
python.pkgs.ninja
python.pkgs.packaging
python.pkgs.setuptools
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
python.pkgs.qt6.darwinVersionInputs
];

cmakeFlags = [ "-DBUILD_TESTS=OFF" ];

Expand Down

0 comments on commit 057f63b

Please sign in to comment.