Unverified Commit 4df8a4fe authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

python312Packages.libvirt: fix cross build (#370623)

parents a3cc57a9 5945ce7d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
{
  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 ];