Unverified Commit ae98bf92 authored by Jared Baur's avatar Jared Baur
Browse files

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.
parent fd61c702
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -952,14 +952,13 @@ optionalAttrs allowAliases aliases
          pkgs.callPackage (
            {
              runCommand,
              python3,
              libxml2Python,
              python3Packages,
            }:
            runCommand name
              {
                nativeBuildInputs = [
                  python3
                  python3.pkgs.xmltodict
                  python3Packages.xmltodict
                  libxml2Python
                ];
                value = builtins.toJSON value;