Skip to content

Commit 4df8a4f

Browse files
authored
python312Packages.libvirt: fix cross build (NixOS#370623)
2 parents a3cc57a + 5945ce7 commit 4df8a4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/development/python-modules/libvirt/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
stdenv,
23
lib,
34
buildPythonPackage,
45
fetchFromGitLab,
@@ -21,6 +22,11 @@ buildPythonPackage rec {
2122
hash = "sha256-zOjTGXwxjd6QT01AaIln0FdP/8UZS0W3yPltUhlocpk=";
2223
};
2324

25+
postPatch = ''
26+
substituteInPlace setup.py \
27+
--replace-fail 'pkg-config' "${stdenv.cc.targetPrefix}pkg-config"
28+
'';
29+
2430
build-system = [ setuptools ];
2531

2632
nativeBuildInputs = [ pkg-config ];

0 commit comments

Comments
 (0)