buildLuaPackage: throw instead of marking as broken package

hopefully makes the output of nixpkgs-review more sensible.

Lua package sets are different and it makes more sense than for other
languages for packages to not be supported in specific package sets.
This commit is contained in:
Matthieu Coudron 2023-03-06 16:41:54 +01:00 committed by Matthieu Coudron
parent 15ac0abbe6
commit 0cd595cdb3

View File

@ -213,8 +213,8 @@ let
platforms = lua.meta.platforms;
# add extra maintainer(s) to every package
maintainers = (meta.maintainers or []) ++ [ ];
broken = disabled;
} // meta;
}));
in
assert (disabled -> throw "${pname} not supported for interpreter ${lua.executable}");
luarocksDrv