From 86c05253a1ce17d312e820af9b66986f7754516b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 3 Sep 2024 20:08:12 -0400 Subject: [PATCH] python3Packages.skia-pathops: fix build on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vendored version of skia-pathops needs `libtool` from cctools to build. While it could be found using `xcrun --find libtool`, Skia’s build process doesn’t use that. It tries to run `libtool` directly. --- .../python-modules/skia-pathops/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/skia-pathops/default.nix b/pkgs/development/python-modules/skia-pathops/default.nix index 8e27202ad838..308ecd70de06 100644 --- a/pkgs/development/python-modules/skia-pathops/default.nix +++ b/pkgs/development/python-modules/skia-pathops/default.nix @@ -10,6 +10,7 @@ fetchPypi, gn, pytestCheckHook, + cctools, xcodebuild, ApplicationServices, OpenGL, @@ -53,11 +54,16 @@ buildPythonPackage rec { EOF ''; - nativeBuildInputs = [ - cython - ninja - setuptools-scm - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcodebuild ]; + nativeBuildInputs = + [ + cython + ninja + setuptools-scm + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + cctools.libtool + xcodebuild + ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices