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:
Jörg Thalheim 2021-12-30 06:02:25 +00:00 committed by GitHub
commit 4e330d84e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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"