about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2023-04-03 15:19:28 +0200
committerBob van der Linden <bobvanderlinden@gmail.com>2023-04-05 11:37:50 +0200
commit072cd2ab7a15b7fd475deaf5bb63405d351b82c2 (patch)
treede904f4cd80687b07413914db40dc9eb844d66d9
parentc32dd072f0f6fc8e00b3d926fbe4a3f32ba529ab (diff)
pjsip: fix pjsua executable compatiblity with darwin
-rw-r--r--pkgs/applications/networking/pjsip/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/networking/pjsip/default.nix b/pkgs/applications/networking/pjsip/default.nix
index 338d4cb2f08a6..11462dab9a1bd 100644
--- a/pkgs/applications/networking/pjsip/default.nix
+++ b/pkgs/applications/networking/pjsip/default.nix
@@ -98,6 +98,11 @@ stdenv.mkDerivation (finalAttrs: {
         install_name_tool -id $lib "''${change_args[@]}" $lib
       fi
     done
+
+    # Rewrite library references for all executables.
+    find "$out" -executable -type f | while read executable; do
+      install_name_tool "''${change_args[@]}" "$executable"
+    done
   '';
 
   # We need the libgcc_s.so.1 loadable (for pthread_cancel to work)