mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
stdenv/check-meta: don't infrec on unsupported platforms
This commit is contained in:
parent
d72da1d01a
commit
ba79149c66
@ -424,7 +424,7 @@ let
|
||||
else if !allowBroken && attrs.meta.broken or false then
|
||||
{ valid = "no"; reason = "broken"; errormsg = "is marked as broken"; }
|
||||
else if !allowUnsupportedSystem && hasUnsupportedPlatform attrs then
|
||||
let toPretty = toPretty {
|
||||
let toPretty' = toPretty {
|
||||
allowPrettyValues = true;
|
||||
indent = " ";
|
||||
};
|
||||
@ -432,8 +432,8 @@ let
|
||||
errormsg = ''
|
||||
is not available on the requested hostPlatform:
|
||||
hostPlatform.config = "${hostPlatform.config}"
|
||||
package.meta.platforms = ${toPretty (attrs.meta.platforms or [])}
|
||||
package.meta.badPlatforms = ${toPretty (attrs.meta.badPlatforms or [])}
|
||||
package.meta.platforms = ${toPretty' (attrs.meta.platforms or [])}
|
||||
package.meta.badPlatforms = ${toPretty' (attrs.meta.badPlatforms or [])}
|
||||
'';
|
||||
}
|
||||
else if !(hasAllowedInsecure attrs) then
|
||||
|
Loading…
Reference in New Issue
Block a user