anchor.diff:  
         ${lib.optionalString stdenv.targetPlatform.isx86_64 ''
           # Copy libSystem's .o files for various low-level boot stuff.
  -        cp -d ${darwin.Libsystem}/lib/*.o $out/lib
  +        cp -d ${lib.getLib darwin.Libsystem}/lib/*.o $out/lib
   
           # Resolv is actually a link to another package, so let's copy it properly
  -        cp -L ${darwin.Libsystem}/lib/libresolv.9.dylib $out/lib
  +        cp -L ${lib.getLib darwin.Libsystem}/lib/libresolv.9.dylib $out/lib
   
           cp -rL ${darwin.Libsystem}/include $out
           chmod -R u+w $out/include
  
positive.code:         cp ${cctools_}/bin/$i $out/bin
        done
  
        cp -d ${darwin.libtapi}/lib/libtapi* $out/lib
  
        ${lib.optionalString targetPlatform.isx86_64 ''
          cp -rd ${pkgs.darwin.CF}/Library $out
  
negative.code: 
        cp -d ${gnugrep.pcre.out}/lib/libpcre*.dylib $out/lib
        cp -d ${lib.getLib libiconv}/lib/lib*.dylib $out/lib
        cp -d ${lib.getLib gettext}/lib/libintl*.dylib $out/lib
        chmod +x $out/lib/libintl*.dylib
        cp -d ${ncurses.out}/lib/libncurses*.dylib $out/lib
        cp -d ${libxml2.out}/lib/libxml2*.dylib $out/lib
  
        # Copy what we need of clang
        cp -d ${llvmPackages.clang-unwrapped}/bin/clang* $out/bin
        cp -rd ${lib.getLib llvmPackages.clang-unwrapped}/lib/* $out/lib
  
        cp -d ${lib.getLib llvmPackages.libcxx}/lib/libc++*.dylib $out/lib
        cp -d ${lib.getLib llvmPackages.libcxxabi}/lib/libc++abi*.dylib $out/lib
        cp -d ${lib.getLib llvmPackages.compiler-rt}/lib/darwin/libclang_rt* $out/lib/darwin
        cp -d ${lib.getLib llvmPackages.compiler-rt}/lib/libclang_rt* $out/lib
        cp -d ${lib.getLib llvmPackages.llvm.lib}/lib/libLLVM.dylib $out/lib
        cp -d ${lib.getLib libffi}/lib/libffi*.dylib $out/lib
  
        mkdir $out/include
        cp -rd ${llvmPackages.libcxx.dev}/include/c++     $out/include
  