12 darwin = "1.6.00.4464";
15 darwin = "sha256-DvXMrXotKWUqFCb7rZj8wU7mmZJKuTLGyx8qOB/aQtg=";
18 description = "Microsoft Teams";
19 homepage = "https://teams.microsoft.com";
20 downloadPage = "https://teams.microsoft.com/downloads";
21 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
22 license = licenses.unfree;
23 maintainers = with maintainers; [ tricktron ];
24 platforms = [ "x86_64-darwin" "aarch64-darwin" ];
25 mainProgram = "teams";
28 appName = "Teams.app";
32 version = versions.darwin;
35 url = "https://statics.teams.cdn.office.net/production-osx/${versions.darwin}/Teams_osx.pkg";
39 nativeBuildInputs = [ xar cpio makeWrapper ];
43 zcat < Teams_osx_app.pkg/Payload | cpio -i
46 sourceRoot = "Microsoft\ Teams.app";
53 mkdir -p $out/{Applications/${appName},bin}
54 cp -R . $out/Applications/${appName}
55 makeWrapper $out/Applications/${appName}/Contents/MacOS/Teams $out/bin/teams