From dd91988ab31037a439f79c12126ef6e1514428af Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 19 Jan 2026 00:18:11 +0000 Subject: [PATCH] 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. --- pkgs/development/python-modules/lxml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix index ca4523d99cf1..2892a70dd7c4 100644 --- a/pkgs/development/python-modules/lxml/default.nix +++ b/pkgs/development/python-modules/lxml/default.nix @@ -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 = [