uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
63
pkgs/development/python-modules/pyvex/default.nix
Normal file
63
pkgs/development/python-modules/pyvex/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, archinfo
|
||||
, bitstring
|
||||
, buildPythonPackage
|
||||
, cffi
|
||||
, fetchPypi
|
||||
, future
|
||||
, pycparser
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyvex";
|
||||
version = "9.2.6";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-I2ZQJ/CDvNq5uJoLT9SHDGzeuI32YUy/6fMSNR9WM8I=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
archinfo
|
||||
bitstring
|
||||
cffi
|
||||
future
|
||||
pycparser
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace vex/Makefile-gcc \
|
||||
--replace '/usr/bin/ar' 'ar'
|
||||
'';
|
||||
|
||||
setupPyBuildFlags = lib.optionals stdenv.isLinux [
|
||||
"--plat-name"
|
||||
"linux"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export CC=${stdenv.cc.targetPrefix}cc
|
||||
substituteInPlace pyvex_c/Makefile \
|
||||
--replace 'AR=ar' 'AR=${stdenv.cc.targetPrefix}ar'
|
||||
'';
|
||||
|
||||
# No tests are available on PyPI, GitHub release has tests
|
||||
# Switch to GitHub release after all angr parts are present
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyvex"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to libVEX and VEX IR";
|
||||
homepage = "https://github.com/angr/pyvex";
|
||||
license = with licenses; [ bsd2 gpl3Plus lgpl3Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue