anchor.diff:      # 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
     '';
   
     dontAutoPatchelf = true;
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "teams";
    version = "1.3.00.30857";
  
    src = fetchurl {
      url = "https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${version}_amd64.deb";
      sha256 = "06r48h1fr2si2g5ng8hsnbcmr70iapnafj21v5bzrzzrigzb2n2h";
    };
  
    nativeBuildInputs = [ dpkg autoPatchelfHook wrapGAppsHook ];
  
negative.code: 
    preFixup = ''
      gappsWrapperArgs+=(--prefix PATH : "${coreutils}/bin:${gawk}/bin:${xdg-utils}/bin")
      gappsWrapperArgs+=(--add-flags --disable-namespace-sandbox)
      gappsWrapperArgs+=(--add-flags --disable-setuid-sandbox)
    '';
  
    installPhase = ''
      runHook preInstall
  
      mkdir -p $out/{opt,bin}
  
      mv share/teams $out/opt/
  