python3Packages.lxml: fix cross-compilation

Rather than relying on lxml's build system to find its dependencies by path, use
the pkg-config hook.  This makes cross-compilation work, as otherwise the build
will attempt to link build platform libs while making host platform outputs.
This commit is contained in:
Nathaniel Wesley Filardo
2026-01-19 00:24:05 +00:00
parent 42c8ee3b52
commit dd91988ab3
@@ -7,6 +7,7 @@
# build-system
cython,
setuptools,
pkg-config,
# native dependencies
libxml2,
@@ -40,8 +41,7 @@ buildPythonPackage rec {
# required for build time dependency check
nativeBuildInputs = [
libxml2.dev
libxslt.dev
pkg-config
];
buildInputs = [