python312Packages.libvirt: fix cross build

This commit is contained in:
FliegendeWurst
2025-01-03 15:28:14 +01:00
parent f28864e00d
commit 5945ce7d74
@@ -1,4 +1,5 @@
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitLab,
@@ -21,6 +22,11 @@ buildPythonPackage rec {
hash = "sha256-zOjTGXwxjd6QT01AaIln0FdP/8UZS0W3yPltUhlocpk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
'';
build-system = [ setuptools ];
nativeBuildInputs = [ pkg-config ];