···11-# These are generated with otool -L /usr/lib/libSystem.dylib on a 10.11 machine22-/usr/lib/system/libcache.dylib33-/usr/lib/system/libcommonCrypto.dylib44-/usr/lib/system/libcompiler_rt.dylib55-/usr/lib/system/libcopyfile.dylib66-/usr/lib/system/libcorecrypto.dylib77-/usr/lib/system/libdispatch.dylib88-/usr/lib/system/libdyld.dylib99-/usr/lib/system/libkeymgr.dylib1010-/usr/lib/system/liblaunch.dylib1111-/usr/lib/system/libmacho.dylib1212-/usr/lib/system/libquarantine.dylib1313-/usr/lib/system/libremovefile.dylib1414-/usr/lib/system/libsystem_asl.dylib1515-/usr/lib/system/libsystem_blocks.dylib1616-1717-# We handle this specially in the expression1818-# /usr/lib/system/libsystem_c.dylib1919-2020-/usr/lib/system/libsystem_configuration.dylib2121-/usr/lib/system/libsystem_coreservices.dylib2222-# /usr/lib/system/libsystem_coretls.dylib # Removed in 10.132323-/usr/lib/system/libsystem_dnssd.dylib2424-/usr/lib/system/libsystem_info.dylib2525-2626-# We handle this specially in the expression2727-# /usr/lib/system/libsystem_kernel.dylib2828-2929-/usr/lib/system/libsystem_m.dylib3030-/usr/lib/system/libsystem_malloc.dylib3131-# /usr/lib/system/libsystem_network.dylib # Removed in 10.143232-/usr/lib/system/libsystem_networkextension.dylib3333-/usr/lib/system/libsystem_notify.dylib3434-/usr/lib/system/libsystem_platform.dylib3535-/usr/lib/system/libsystem_pthread.dylib3636-/usr/lib/system/libsystem_sandbox.dylib3737-/usr/lib/system/libsystem_secinit.dylib3838-/usr/lib/system/libsystem_trace.dylib3939-/usr/lib/system/libunc.dylib4040-/usr/lib/system/libunwind.dylib4141-/usr/lib/system/libxpc.dylib
···180180 unpack = stdenv.mkDerivation (bootstrapFiles // {181181 name = "unpack";182182183183- reexportedLibrariesFile =184184- ../../os-specific/darwin/apple-source-releases/Libsystem/reexported_libraries;185185-186183 # This is by necessity a near-duplicate of unpack-bootstrap-tools.sh. If we refer to it directly,187184 # we can't make any changes to it due to our testing stdenv depending on it. Think of this as the188185 # unpack-bootstrap-tools.sh for the next round of bootstrap tools.
-35
pkgs/stdenv/darwin/unpack-bootstrap-tools.sh
···1717 fi1818done19192020-install_name_tool \2121- -id $out/lib/system/libsystem_c.dylib \2222- $out/lib/system/libsystem_c.dylib2323-2424-install_name_tool \2525- -id $out/lib/system/libsystem_kernel.dylib \2626- $out/lib/system/libsystem_kernel.dylib2727-2828-# TODO: this logic basically duplicates similar logic in the Libsystem expression. Deduplicate them!2929-libs=$(cat $reexportedLibrariesFile | grep -v '^#')3030-3131-for i in $libs; do3232- if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then3333- args="$args -reexport_library $i"3434- fi3535-done3636-3737-ld -macosx_version_min 10.7 \3838- -arch x86_64 \3939- -dylib \4040- -o $out/lib/libSystem.B.dylib \4141- -compatibility_version 1.0 \4242- -current_version 1226.10.1 \4343- -reexport_library $out/lib/system/libsystem_c.dylib \4444- -reexport_library $out/lib/system/libsystem_kernel.dylib \4545- $args4646-4747-ln -s libSystem.B.dylib $out/lib/libSystem.dylib4848-4949-for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.10.4 gcc_s.10.5; do5050- ln -s libSystem.dylib $out/lib/lib$name.dylib5151-done5252-5353-ln -s libresolv.9.dylib $out/lib/libresolv.dylib5454-5520for i in $out/lib/*.dylib $out/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation; do5621 if test ! -L "$i" -a "$i" != "$out/lib/libSystem*.dylib"; then5722 echo "Patching $i"