···1717 src = capstone.src;
1818 sourceRoot = "${src.name}/bindings/python";
19192020+ # libcapstone.a is not built with BUILD_SHARED_LIBS. For some reason setup.py
2121+ # checks if it exists but it is not really needed. Most likely a bug in setup.py.
2022 postPatch = ''
2123 ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
2222- ln -s ${capstone}/lib/libcapstone.a prebuilt/
2424+ touch prebuilt/libcapstone${stdenv.targetPlatform.extensions.staticLibrary}
2325 substituteInPlace setup.py --replace manylinux1 manylinux2014
2426 '';
2527