anchor.diff:      dontPatchELF = true;
       buildInputs = [ makeWrapper ];
   
  +    # make exec.py in Default.sublime-package use own bash with
  +    # an LD_PRELOAD instead of "/bin/bash"
  +    patchPhase = ''
  +      mkdir Default.sublime-package-fix
  +      ( cd Default.sublime-package-fix
  +        ${unzip}/bin/unzip ../Packages/Default.sublime-package > /dev/null
  +        substituteInPlace "exec.py" --replace \
  +          "[\"/bin/bash\"" \
  +          "[\"$out/sublime_bash\""
  +      )
  +      ${zip}/bin/zip -j Default.sublime-package.zip Default.sublime-package-fix/* > /dev/null
  +      mv Default.sublime-package.zip Packages/Default.sublime-package
  +      rm -r Default.sublime-package-fix
  +    '';
  +
       buildPhase = ''
         for i in sublime_text plugin_host crash_reporter; do
           patchelf \
  
positive.code: 
        mkdir -p $out
        cp -prvd * $out/
  
        wrapProgram $out/sublime_text \
          --set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
  
negative.code: { fetchurl, stdenv, glib, xorg, cairo, gtk2, pango, makeWrapper, openssl, bzip2,
    pkexecPath ? "/run/wrappers/bin/pkexec", libredirect,
    gksuSupport ? false, gksu, unzip, zip, bash }:
  
  assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
  assert gksuSupport -> gksu != null;
  