diff --git a/pkgs/development/libraries/onnxruntime/default.nix b/pkgs/development/libraries/onnxruntime/default.nix index e3ef22676412807..77730cb8820e598 100644 --- a/pkgs/development/libraries/onnxruntime/default.nix +++ b/pkgs/development/libraries/onnxruntime/default.nix @@ -86,6 +86,9 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace cmake/external/abseil-cpp.cmake \ --replace "${abseil.url}" "${abseil}" + + substituteInPlace cmake/libonnxruntime.pc.cmake.in \ + --replace '$'{prefix}/@CMAKE_INSTALL_ @CMAKE_INSTALL_ ''; postInstall = ''