1 # Make /nix/store/...-libSystem “portable” for static built binaries.
2 # This just rewrites everything in $1/bin to use the
3 # /usr/lib/libSystem.B.dylib that is provided on every macOS system.
5 fixupOutputHooks
+=('fixLibsystemRefs $prefix')
8 if [ -d "$1/bin" ]; then
10 install_name_tool
-change @libsystem@
/usr
/lib
/libSystem.B.dylib
{} \
;