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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user