fix(onnx): Use patched version of onnxruntime
Some checks failed
build / checks-matrix (push) Successful in 19m21s
build / codecov (push) Failing after 19m26s
docs / docs (push) Failing after 28m47s
build / checks-build (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-19 15:28:38 +05:30
parent 3d56db687c
commit 33798467ba
2 changed files with 47 additions and 2 deletions

View File

@@ -86,6 +86,9 @@
"-Donnxruntime_BUILD_STATIC_LIB=ON"
];
});
patchedOnnxruntime = pkgs.onnxruntime.overrideAttrs (old: {
patches = [./patches/ort_env_global_mutex.patch];
});
src = let
filterBySuffix = path: exts: lib.any (ext: lib.hasSuffix ext path) exts;
sourceFilters = path: type:
@@ -111,8 +114,8 @@
stdenv = p: p.clangStdenv;
doCheck = false;
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
ORT_LIB_LOCATION = "${pkgs.onnxruntime}";
ORT_ENV_SYSTEM_LIB_LOCATION = "${pkgs.onnxruntime}/lib";
ORT_LIB_LOCATION = "${patchedOnnxruntime}";
ORT_ENV_SYSTEM_LIB_LOCATION = "${patchedOnnxruntime}/lib";
ORT_ENV_PREFER_DYNAMIC_LINK = true;
nativeBuildInputs = with pkgs; [
cmake