rapidraw: fix onnxruntime not being found on darwin during check phase

This commit is contained in:
PhiliPdB
2026-02-02 19:40:25 +01:00
parent 70322ed5be
commit 6dc078a6f5
+5
View File
@@ -125,6 +125,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
--replace-fail 'if !is_valid' 'if false'
'';
# Fix dyld error about onnxruntime not being loaded on darwin during cargo test
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
export DYLD_LIBRARY_PATH="${onnxruntime}/lib:$DYLD_LIBRARY_PATH"
'';
dontWrapGApps = true;
# needs to be declared twice annoyingly