anchor.diff:      dontPatchELF = true;
   
       installPhase = ''
  +      runHook preInstall
  +
         # The deb file contains a setuid binary, so 'dpkg -x' doesn't work here
         dpkg --fsys-tarfile $src | tar --extract
         rm -rf usr/share/lintian
  
positive.code:     sourceRoot = "Slack.app";
  
      installPhase = ''
        mkdir -p $out/Applications/Slack.app
        cp -R . $out/Applications/Slack.app
        /usr/bin/defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES
      '';
    };
  in
  
negative.code:       substituteInPlace $out/share/applications/slack.desktop \
          --replace /usr/bin/ $out/bin/ \
          --replace /usr/share/ $out/share/
  
        runHook postInstall
      '';
    };
  
  