diff options
author | Olli Helenius <liff@iki.fi> | 2021-06-08 22:57:13 +0300 |
---|---|---|
committer | Olli Helenius <liff@iki.fi> | 2021-06-08 22:57:13 +0300 |
commit | c878a8a47fdc73302a8539c892446bae8ab05fb4 (patch) | |
tree | 7acb084e8044f5f33e729b53ebf95458056f9eb8 /pkgs/applications/networking/instant-messengers/teams | |
parent | 12e7af1cfb3ab5bbbbd1d213a0b17c11ce9d3f2f (diff) |
teams: add an argument for enabling rect-overlay
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.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/teams')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/teams/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/teams/default.nix b/pkgs/applications/networking/instant-messengers/teams/default.nix index cd7efb7ad89cd..6941322ad8873 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 ''; |