3
0
Fork 0
forked from mirrors/nixpkgs

stdenv: show supported and requested platforms when check meta fails

This commit is contained in:
Sandro Jäckel 2022-11-24 21:29:38 +01:00 committed by Sandro Jäckel
parent 23ce77d76e
commit 0a8e692d29
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -367,7 +367,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
{ valid = "no"; reason = "unsupported"; errormsg = "is not supported on ${hostPlatform.system}"; }
{ valid = "no"; reason = "unsupported"; errormsg = "is only supported on `${toString attrs.meta.platforms}` but not on requested ${hostPlatform.system}"; }
else if !(hasAllowedInsecure attrs) then
{ valid = "no"; reason = "insecure"; errormsg = "is marked as insecure"; }