From 9e6f41c703940a2983baa073a55c24895ca80a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Thu, 28 May 2026 15:36:43 +0200 Subject: [PATCH] Revert "sherpa-onnx: fix darwin runtime linking to onnxruntime" This reverts commit 9ccaa6cd7c745d21c0918b0c9723fdcf44cadb94. --- pkgs/by-name/sh/sherpa-onnx/package.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkgs/by-name/sh/sherpa-onnx/package.nix b/pkgs/by-name/sh/sherpa-onnx/package.nix index bc584ff8a08f..b09d89265c8b 100644 --- a/pkgs/by-name/sh/sherpa-onnx/package.nix +++ b/pkgs/by-name/sh/sherpa-onnx/package.nix @@ -191,10 +191,6 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; - preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' - export DYLD_FALLBACK_LIBRARY_PATH=${lib.getLib onnxruntime}/lib - ''; - # Use ctest directly because the default `make check` target includes clang-tidy. checkPhase = '' runHook preCheck @@ -206,10 +202,6 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p $python cp -r ../sherpa-onnx/python/sherpa_onnx $python/ rm $out/lib/_sherpa_onnx*.so - ${lib.optionalString stdenv.hostPlatform.isDarwin '' - install_name_tool -add_rpath ${lib.getLib onnxruntime}/lib \ - $python/sherpa_onnx/lib/_sherpa_onnx*.so - ''} ''; passthru = {