mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 06:13:55 +00:00
onnxruntime: fix rpath on darwin
This commit is contained in:
@@ -147,6 +147,10 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
"return PathString{};" \
|
||||
"return PathString(\"$out/lib/\");"
|
||||
''
|
||||
+ lib.optionalString effectiveStdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace cmake/onnxruntime.cmake \
|
||||
--replace-fail "INSTALL_NAME_DIR @rpath" "INSTALL_NAME_DIR $out/lib"
|
||||
''
|
||||
+ lib.optionalString rocmSupport ''
|
||||
patchShebangs tools/ci_build/hipify-perl
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user