Merge pull request #126259 from liff/teams/rect-overlay-arg

teams: add an argument for enabling rect-overlay
This commit is contained in:
Sandro 2021-06-14 17:30:45 +02:00 committed by GitHub
commit 0d81966c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,8 @@
, coreutils
, gawk
, xdg-utils
, systemd }:
, systemd
, enableRectOverlay ? false }:
stdenv.mkDerivation rec {
pname = "teams";
@ -57,9 +58,11 @@ stdenv.mkDerivation rec {
ln -s $out/opt/teams/teams $out/bin/
${lib.optionalString (!enableRectOverlay) ''
# Work-around screen sharing bug
# https://docs.microsoft.com/en-us/answers/questions/42095/sharing-screen-not-working-anymore-bug.html
rm $out/opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/rect-overlay
''}
runHook postInstall
'';