Commit 0cd595cd authored by Matthieu Coudron's avatar Matthieu Coudron Committed by Matthieu Coudron
Browse files

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.
parent 15ac0abb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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