mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
stdenv/darwin: fix portable libsystem hook
Some packages don’t have /bin directories. We should only run install_name_tool if that directory exists.
This commit is contained in:
parent
703827f36c
commit
0b8574540b
@ -5,6 +5,8 @@
|
|||||||
fixupOutputHooks+=('fixLibsystemRefs $prefix')
|
fixupOutputHooks+=('fixLibsystemRefs $prefix')
|
||||||
|
|
||||||
fixLibsystemRefs() {
|
fixLibsystemRefs() {
|
||||||
find "$1/bin" \
|
if [ -d "$1/bin" ]; then
|
||||||
-exec install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
|
find "$1/bin" -exec \
|
||||||
|
install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user