From 044afc70cfed2a9dd022da3326afc6428dceb6d0 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 14 May 2022 17:46:51 +0100 Subject: [PATCH] python3Packages.pyvips: fix on darwin-aarch64 by providing pkg-config ...as well as the python package `pkgconfig`. the native `pkg-config` tool is used by the installer to locate the vips headers. if it can't do this it falls back into using libffi's "ABI mode" which results in the issues documented at https://cffi.readthedocs.io/en/latest/using.html#callbacks on darwin-aarch64. --- pkgs/development/python-modules/pyvips/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyvips/default.nix b/pkgs/development/python-modules/pyvips/default.nix index 5b84a4373d8..4742143edad 100644 --- a/pkgs/development/python-modules/pyvips/default.nix +++ b/pkgs/development/python-modules/pyvips/default.nix @@ -5,7 +5,8 @@ , glib , vips , cffi -, pkgconfig +, pkgconfig # from pythonPackages +, pkg-config # from pkgs , lib }: buildPythonPackage rec { @@ -19,7 +20,7 @@ buildPythonPackage rec { sha256 = "sha256-qMVoVzqXALhPWVKLzu+VqihHPN7J+pMhKnXdb+ow0zw="; }; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig pkg-config ]; buildInputs = [ glib vips ];