anchor.diff:  
       buildInputs = atomEnv.packages;
   
  -    unpackPhase = "dpkg-deb -x $src .";
  +    unpackPhase = ''
  +      runHook preUnpack
  +
  +      dpkg-deb -x $src .
  +
  +      runHook postUnpack
  +    '';
   
       installPhase = ''
  +      runHook preInstall
  +
         mkdir -p "$out/bin"
         cp -R "opt" "$out"
         cp -R "usr/share" "$out/share"
  
positive.code:       # Desktop file
        mkdir -p "$out/share/applications"
        cp "${desktopItem}/share/applications/"* "$out/share/applications"
      '';
  
      runtimeDependencies = [
  
negative.code:     ];
  
      unpackPhase = ''
        runHook preUnpack
  
        xar -xf $src
        cd com.wearezeta.zclient.mac.pkg
  
        runHook postUnpack
      '';
  
      buildPhase = ''
        runHook preBuild
  
        cat Payload | gunzip -dc | cpio -i
  
        runHook postBuild
      '';
  
      installPhase = ''
        runHook preInstall
  
        mkdir -p $out/Applications
        cp -r Wire.app $out/Applications
  
        runHook postInstall
      '';
    };
  
  