python3Packages.capstone: aarch64 platform name
This commit is contained in:
parent
b8c3cd1318
commit
b84835ebde
@ -1,14 +1,15 @@
|
|||||||
{ lib, stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, fetchpatch
|
|
||||||
, setuptools
|
|
||||||
, capstone
|
, capstone
|
||||||
|
, fetchpatch
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "capstone";
|
pname = "capstone";
|
||||||
version = stdenv.lib.getVersion capstone;
|
version = lib.getVersion capstone;
|
||||||
|
|
||||||
src = capstone.src;
|
src = capstone.src;
|
||||||
sourceRoot = "${capstone.name}/bindings/python";
|
sourceRoot = "${capstone.name}/bindings/python";
|
||||||
@ -16,6 +17,7 @@ buildPythonPackage rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
|
ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
|
||||||
ln -s ${capstone}/lib/libcapstone.a prebuilt/
|
ln -s ${capstone}/lib/libcapstone.a prebuilt/
|
||||||
|
substituteInPlace setup.py --replace manylinux1 manylinux2014
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ setuptools ];
|
propagatedBuildInputs = [ setuptools ];
|
||||||
|
Loading…
Reference in New Issue
Block a user