Merge pull request #300211 from K900/fix-check-meta

stdenv/check-meta: don't infrec on unsupported platforms

authored by K900 and committed by GitHub f4a04eea f20b81cd

+3 -3
+3 -3
pkgs/stdenv/generic/check-meta.nix
··· 424 424 else if !allowBroken && attrs.meta.broken or false then 425 425 { valid = "no"; reason = "broken"; errormsg = "is marked as broken"; } 426 426 else if !allowUnsupportedSystem && hasUnsupportedPlatform attrs then 427 - let toPretty = toPretty { 427 + let toPretty' = toPretty { 428 428 allowPrettyValues = true; 429 429 indent = " "; 430 430 }; ··· 432 432 errormsg = '' 433 433 is not available on the requested hostPlatform: 434 434 hostPlatform.config = "${hostPlatform.config}" 435 - package.meta.platforms = ${toPretty (attrs.meta.platforms or [])} 436 - package.meta.badPlatforms = ${toPretty (attrs.meta.badPlatforms or [])} 435 + package.meta.platforms = ${toPretty' (attrs.meta.platforms or [])} 436 + package.meta.badPlatforms = ${toPretty' (attrs.meta.badPlatforms or [])} 437 437 ''; 438 438 } 439 439 else if !(hasAllowedInsecure attrs) then