teams: Don't use root-level throw for unsupported platforms

Unsupported platforms are handled with `meta.platforms`, there's no need
to have an extra `throw` for this.

This makes the top-level attribute `teams` attribute evaluate
This commit is contained in:
Silvan Mosberger 2023-12-22 19:24:52 +01:00
parent 66bda599f4
commit 7d926d19d3

View File

@ -26,8 +26,8 @@ let
};
appName = "Teams.app";
darwin = stdenv.mkDerivation {
in
stdenv.mkDerivation {
inherit pname meta;
version = versions.darwin;
@ -55,8 +55,4 @@ let
makeWrapper $out/Applications/${appName}/Contents/MacOS/Teams $out/bin/teams
runHook postInstall
'';
};
in
if stdenv.isDarwin
then darwin
else throw "Teams app for Linux has been removed as it is unmaintained by upstream. (2023-09-29)"
}