Merge pull request #152634 from risicle/ris-angr-keystone-aarch64
python3Packages.angr, python3Packages.keystone-engine: fix build for non-x86 linux
This commit is contained in:
commit
4e330d84e9
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, ailment
|
||||
, archinfo
|
||||
, buildPythonPackage
|
||||
@ -54,6 +55,8 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-AZlqSalTOQh3QR959ZuanFuTZVKi9valKJ3snsquC/A=";
|
||||
};
|
||||
|
||||
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ailment
|
||||
archinfo
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, keystone }:
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, keystone }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "keystone-engine";
|
||||
@ -9,6 +9,8 @@ buildPythonPackage rec {
|
||||
sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig";
|
||||
};
|
||||
|
||||
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py --replace \
|
||||
"libkeystone" "${keystone}/lib/libkeystone"
|
||||
|
Loading…
Reference in New Issue
Block a user