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.
main
Robert Scott 2 years ago
parent ed3f3fb843
commit 044afc70cf
  1. 5
      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 ];

Loading…
Cancel
Save