···178178 unpack = stdenv.mkDerivation (bootstrapFiles // {179179 name = "unpack";180180181181+ reexportedLibrariesFile =182182+ ../../os-specific/darwin/apple-source-releases/Libsystem/reexported_libraries;183183+181184 # This is by necessity a near-duplicate of unpack-bootstrap-tools.sh. If we refer to it directly,182185 # we can't make any changes to it due to our testing stdenv depending on it. Think of this as the183186 # unpack-bootstrap-tools.sh for the next round of bootstrap tools.···212209 $out/lib/system/libsystem_kernel.dylib213210214211 # TODO: this logic basically duplicates similar logic in the Libsystem expression. Deduplicate them!215215- libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')212212+ libs=$(cat $reexportedLibrariesFile | grep -v '^#')216213217214 for i in $libs; do218215 if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then