python3Packages.pyvex: fix cross (#354109)

This commit is contained in:
Fabian Affolter
2024-11-22 13:08:51 +01:00
committed by GitHub

View File

@@ -3,6 +3,7 @@
stdenv,
bitstring,
buildPythonPackage,
buildPackages,
cffi,
fetchPypi,
pycparser,
@@ -30,6 +31,10 @@ buildPythonPackage rec {
pycparser
];
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ cffi ];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace vex/Makefile-gcc \
--replace-fail '/usr/bin/ar' 'ar'