python-generic: set meta.broken for disabled packages instead of raising an error during evaluation

We have tons of evaluation errors on Hydra because it tries to build
known broken packages. Re-using meta.broken makes sure these packages
aren't evaluated in the first place.
This commit is contained in:
Peter Simons 2015-02-12 20:04:30 +01:00
parent 9060376bcd
commit 79a5fec9c0

View file

@ -51,7 +51,7 @@
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
if disabled then throw "${name} not supported for interpreter ${python.executable}" else python.stdenv.mkDerivation (attrs // {
python.stdenv.mkDerivation (attrs // {
inherit doCheck;
name = namePrefix + name;
@ -167,6 +167,7 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
meta = with lib.maintainers; {
# default to python's platforms
platforms = python.meta.platforms;
broken = disabled;
} // meta // {
# add extra maintainer(s) to every package
maintainers = (meta.maintainers or []) ++ [ chaoflow iElectric ];