anchor.diff:  
   appleDerivation {
     # We can't just run the root build, because https://github.com/facebook/xcbuild/issues/264
  +
  +  patchPhase = ''
  +    substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
  +      --replace '/usr/lib/libtermcap.dylib' 'libncurses.dylib'
  +  '';
   
     # pkill requires special private headers that are unavailable in
     # NixPkgs. These ones are needed:
  
positive.code:   installPhase = ''
      for f in Products/Release/*; do
        if [ -f $f ]; then
          install -D $file $out/bin/$(basename $f)
        fi
      done
  
  
negative.code:   #  - os/base_private.h
    #  - _simple.h
    # We disable it here for now. TODO: build pkill inside adv_cmds
    buildPhase = ''
      targets=$(xcodebuild -list \
                  | awk '/Targets:/{p=1;print;next} p&&/^\s*$/{p=0};p' \
                  | tail -n +2 | sed 's/^[ \t]*//' \
                  | grep -v -e Desktop -e Embedded -e mklocale -e pkill -e pgrep -e colldef)
  
      for i in $targets; do
        xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates -target $i
  