From 60a26bb3aeb2402f0f9412bac09716bb91853d46 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Mon, 28 Jul 2025 10:35:10 -0700 Subject: [PATCH] formats.xml: fix cross compilation `python3.pkgs` does not splice, so with a package-set setup to cross-compile, we end up building xmltodict for the host platform. By using `python3Packages.xmltodict` instead, we only use xmltodict for the build platform, which is all that is needed for generating XML documents at build-time. (cherry picked from commit ae98bf924626863a533f5b4a2354b50df82ce0ba) --- pkgs/pkgs-lib/formats.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/pkgs-lib/formats.nix b/pkgs/pkgs-lib/formats.nix index dd8551affee5..d7f938625626 100644 --- a/pkgs/pkgs-lib/formats.nix +++ b/pkgs/pkgs-lib/formats.nix @@ -898,14 +898,13 @@ rec { pkgs.callPackage ( { runCommand, - python3, libxml2Python, + python3Packages, }: runCommand name { nativeBuildInputs = [ - python3 - python3.pkgs.xmltodict + python3Packages.xmltodict libxml2Python ]; value = builtins.toJSON value;