Merge pull request #230455 from amjoseph-nixpkgs/zhf/bootstrapTools/dont-unpack-foreign

release-cross.nix: fix the fix in #188339
This commit is contained in:
Weijia Wang
2023-05-09 11:20:37 +03:00
committed by GitHub
+3 -2
View File
@@ -242,8 +242,9 @@ in
# so it will fail unless buildPlatform.canExecute hostPlatform.
# Unfortunately `bootstrapTools` also clobbers its own `system`
# attribute, so there is no way to detect this -- we must add it
# as a special case.
(builtins.removeAttrs tools ["bootstrapTools"]);
# as a special case. We filter the "test" attribute (only from
# *cross*-built bootstrapTools) for the same reason.
(builtins.mapAttrs (_: v: builtins.removeAttrs v ["bootstrapTools" "test"]) tools);
# Cross-built nixStatic for platforms for enabled-but-unsupported platforms
mips64el-nixCrossStatic = mapTestOnCross lib.systems.examples.mips64el-linux-gnuabi64 nixCrossStatic;