From 0d873b37168a124e44b0a94c915ad0607345f407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Tue, 27 Sep 2022 12:33:45 +0200 Subject: [PATCH] onnxruntime: fix paths in pkg-config file --- pkgs/development/libraries/onnxruntime/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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 = ''