From c878a8a47fdc73302a8539c892446bae8ab05fb4 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Tue, 8 Jun 2021 22:57:13 +0300 Subject: [PATCH] teams: add an argument for enabling rect-overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rect-overlay doesn’t work on non-composited window managers such as i3 but it’s not a problem for others. Make the choice available via an argument to the derivation. The setting defaults to `false` so that it works for a broader set of users. See also: #99279. --- .../networking/instant-messengers/teams/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/teams/default.nix b/pkgs/applications/networking/instant-messengers/teams/default.nix index cd7efb7ad89cdf..6941322ad88731 100644 --- a/pkgs/applications/networking/instant-messengers/teams/default.nix +++ b/pkgs/applications/networking/instant-messengers/teams/default.nix @@ -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 '';