mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
Merge pull request #126259 from liff/teams/rect-overlay-arg
teams: add an argument for enabling rect-overlay
This commit is contained in:
commit
0d81966c42
@ -12,7 +12,8 @@
|
|||||||
, coreutils
|
, coreutils
|
||||||
, gawk
|
, gawk
|
||||||
, xdg-utils
|
, xdg-utils
|
||||||
, systemd }:
|
, systemd
|
||||||
|
, enableRectOverlay ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "teams";
|
pname = "teams";
|
||||||
@ -57,9 +58,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
ln -s $out/opt/teams/teams $out/bin/
|
ln -s $out/opt/teams/teams $out/bin/
|
||||||
|
|
||||||
|
${lib.optionalString (!enableRectOverlay) ''
|
||||||
# Work-around screen sharing bug
|
# Work-around screen sharing bug
|
||||||
# https://docs.microsoft.com/en-us/answers/questions/42095/sharing-screen-not-working-anymore-bug.html
|
# 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
|
rm $out/opt/teams/resources/app.asar.unpacked/node_modules/slimcore/bin/rect-overlay
|
||||||
|
''}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user