diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index 663c35335df2..cecf9e8fbe33 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -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;