When `meta.platforms' is absent, assume packages target all platforms.

svn path=/nixpkgs/trunk/; revision=17189
This commit is contained in:
Ludovic Courtès 2009-09-16 12:47:27 +00:00
parent 717910394b
commit 2e32120360

@ -48,7 +48,9 @@ let
selectMaintained attrSet
else
if attrSet.meta.maintainers != [] then
attrSet.meta.platforms
(if builtin.hasAttr "platforms" attrSet.meta
then builtin.getAttr "platforms" attrSet.meta
else pkgs.lib.platforms.all)
else
[];