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 -d ${pkgs.darwin.sigtool}/bin/codesign $out/bin
        ''}
  
        cp -d ${darwin.ICU}/lib/libicu*.dylib $out/lib
        cp -d ${zlib.out}/lib/libz.*       $out/lib
        cp -d ${gmpxx.out}/lib/libgmp*.*   $out/lib
        cp -d ${xz.out}/lib/liblzma*.*     $out/lib
  
negative.code:         cp ${cctools_}/bin/$i $out/bin
        done
  
        cp -d ${lib.getLib darwin.libtapi}/lib/libtapi* $out/lib
  
        ${lib.optionalString targetPlatform.isx86_64 ''
          cp -rd ${pkgs.darwin.CF}/Library $out
  