python3Packages.capstone: fix build on aarch64-darwin

closes #165679
This commit is contained in:
Willi Ballenthin 2022-03-24 13:27:25 -06:00 committed by Artturin
parent 1ec61dd416
commit e446f7b091

View File

@ -18,6 +18,10 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace manylinux1 manylinux2014
'';
# aarch64 only available from MacOS SDK 11 onwards, so fix the version tag.
# otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense.
setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "--plat-name" "macosx_11_0" ];
propagatedBuildInputs = [ setuptools ];
checkPhase = ''