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