anchor.diff:      '';
     };
   
  -  darwin = stdenv.mkDerivation rec {
  -    inherit pname meta version;
  +  darwin = stdenv.mkDerivation {
  +    inherit pname version src meta;
   
  -    phases = [ "installPhase" ];
  +    nativeBuildInputs = [ undmg ];
   
  -    src = fetchurl {
  -      url = "https://downloads.slack-edge.com/mac_releases/Slack-${version}-macOS.dmg";
  -      inherit sha256;
  -    };
  +    sourceRoot = "Slack.app";
   
       installPhase = ''
  -      /usr/bin/hdiutil mount -nobrowse -mountpoint slack-mnt $src
  -      mkdir -p $out/Applications
  -      cp -r ./slack-mnt/Slack.app $out/Applications
  -      /usr/bin/hdiutil unmount slack-mnt
  +      mkdir -p $out/Applications/Slack.app
  +      cp -R . $out/Applications/Slack.app
         /usr/bin/defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES
       '';
     };
  
positive.code:   };
  
    linux = stdenv.mkDerivation rec {
      inherit pname meta version;
      src = fetchurl {
        url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb";
        inherit sha256;
      };
  
      rpath = stdenv.lib.makeLibraryPath [
        alsaLib
  
negative.code: { stdenv
  , fetchurl
  , dpkg
  , undmg
  , makeWrapper
  , nodePackages
  , alsaLib
  