···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 the
183186 # unpack-bootstrap-tools.sh for the next round of bootstrap tools.
···209212 $out/lib/system/libsystem_kernel.dylib
210213211214 # TODO: this logic basically duplicates similar logic in the Libsystem expression. Deduplicate them!
212212- libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')
215215+ libs=$(cat $reexportedLibrariesFile | grep -v '^#')
213216214217 for i in $libs; do
215218 if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then