mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
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:
parent
66bda599f4
commit
7d926d19d3
@ -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)"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user