summary refs log tree commit diff
path: root/pkgs/stdenv/darwin/portable-libsystem.sh
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-07-08 19:30:33 -0600
committerRandy Eckenrode <randy@largeandhighquality.com>2023-07-08 20:49:50 -0600
commit6f6687ee24a26ef33b47aec23d804e998ca00964 (patch)
tree9be43960b8c9fe6d7721ce32039e0b7a547eb796 /pkgs/stdenv/darwin/portable-libsystem.sh
parentfeb89eed00eb848da8c9eb56f5dad9fa1e79d536 (diff)
downloadnixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar.gz
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar.bz2
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar.lz
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar.xz
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.tar.zst
nixpkgs-6f6687ee24a26ef33b47aec23d804e998ca00964.zip
darwin.stdenv: only run `install_name_tool` on files
Diffstat (limited to 'pkgs/stdenv/darwin/portable-libsystem.sh')
-rw-r--r--pkgs/stdenv/darwin/portable-libsystem.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/darwin/portable-libsystem.sh b/pkgs/stdenv/darwin/portable-libsystem.sh
index 1fb80c0e5ce..7608c0a0de2 100644
--- a/pkgs/stdenv/darwin/portable-libsystem.sh
+++ b/pkgs/stdenv/darwin/portable-libsystem.sh
@@ -6,7 +6,7 @@ fixupOutputHooks+=('fixLibsystemRefs $prefix')
 
 fixLibsystemRefs() {
   if [ -d "$1/bin" ]; then
-      find "$1/bin" -exec \
+      find "$1/bin" -type f -exec \
         @targetPrefix@install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
   fi
 }