anchor.diff:    enableParallelBuilding = true;
   
     buildInputs = [
  -    ncurses pkgconfig texinfo libxml2 gnutls
  +    ncurses libxml2 gnutls pkgconfig texinfo gettext
     ];
   
     propagatedBuildInputs = [
  -    Carbon Cocoa ImageCaptureCore OSAKit Quartz WebKit
  +    Carbon Cocoa ImageCaptureCore OSAKit Quartz WebKit AppKit GSS ImageIO
     ];
   
     postUnpack = ''
  
positive.code: { stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls
  , Carbon, Cocoa, ImageCaptureCore, OSAKit, Quartz, WebKit
  }:
  
  stdenv.mkDerivation rec {
    emacsName = "emacs-24.5";
    name = "${emacsName}-mac-5.15";
  
    #builder = ./builder.sh;
  
    src = fetchurl {
      url = "mirror://gnu/emacs/${emacsName}.tar.xz";
  
negative.code:     mv $name $emacsName
    '';
  
    postPatch = ''
      patch -p1 < patch-mac
      sed -i 's|/usr/share/locale|${gettext}/share/locale|g' lisp/international/mule-cmds.el
    '';
  
    configureFlags = [
      "LDFLAGS=-L${ncurses}/lib"
      "--with-xml2=yes"
      "--with-gnutls=yes"
      "--with-mac"
      "--enable-mac-app=$$out/Applications"
    ];
  
    CFLAGS = "-O3";
    LDFLAGS = "-O3 -L${ncurses}/lib";
  
    postInstall = ''
      mkdir -p $out/share/emacs/site-lisp/
      cp ${./site-start.el} $out/share/emacs/site-lisp/site-start.el
    '';
  
    doCheck = true;
  