3
0
Fork 0
forked from mirrors/nixpkgs

stdenv: fix eval

silly 💩
This commit is contained in:
Wout Mertens 2015-01-29 10:46:35 +01:00
parent 45c52b7312
commit 006769be70

View file

@ -113,7 +113,7 @@ let
throwEvalHelp "blacklisted" "has the ${attrs.meta.license.shortName} license which is blacklisted"
else if !allowBroken && attrs.meta.broken or false then
throwEvalHelp "Broken" "is marked as broken"
else if !allowBroken && builtins.hasAttr "platforms" attrs.meta && !lib.lists.elem result.system attrs.meta.platforms then
else if !allowBroken && attrs.meta.platforms or null != null && !lib.lists.elem result.system attrs.meta.platforms then
throwEvalHelp "Broken" "is not supported on ${result.system}"
else true;