anchor.diff:    patches = [ ./macvim.patch ];
   
     postPatch = ''
  -    substituteInPlace src/MacVim/mvim --replace "# VIM_APP_DIR=/Applications" "VIM_APP_DIR=$out"
  +    substituteInPlace src/MacVim/mvim --replace "# VIM_APP_DIR=/Applications" "VIM_APP_DIR=$out/Applications"
   
       # Don't create custom icons.
       substituteInPlace src/MacVim/icons/Makefile --replace '$(MAKE) -C makeicns' ""
  
positive.code:   '';
  
    postInstall = ''
      cp -r src/MacVim/build/Release/MacVim.app $out
  
      rm $out/bin/{Vimdiff,Vimtutor,Vim,ex,rVim,rview,view}
  
  
negative.code:     done
  
      # Fix rpaths
      exe="$out/Applications/MacVim.app/Contents/MacOS/Vim"
      libperl=$(dirname $(find ${perl} -name "libperl.dylib"))
      install_name_tool -add_rpath ${luajit}/lib $exe
      install_name_tool -add_rpath ${tcl}/lib $exe
  