python3Packages.capstone: 4.0.2 -> 5.0.1

This commit is contained in:
Artur Cygan 2023-07-27 13:32:35 +02:00
parent 4b35e53ffd
commit 08304db444
1 changed files with 3 additions and 1 deletions

View File

@ -13,9 +13,11 @@ buildPythonPackage rec {
src = capstone.src;
sourceRoot = "${src.name}/bindings/python";
# libcapstone.a is not built with BUILD_SHARED_LIBS. For some reason setup.py
# checks if it exists but it is not really needed. Most likely a bug in setup.py.
postPatch = ''
ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
ln -s ${capstone}/lib/libcapstone.a prebuilt/
touch prebuilt/libcapstone${stdenv.targetPlatform.extensions.staticLibrary}
substituteInPlace setup.py --replace manylinux1 manylinux2014
'';