mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
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 ae98bf9246)
This commit is contained in:
committed by
github-actions[bot]
parent
056a5cfcfa
commit
60a26bb3ae
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user