Use pkg-config to sort out dependencies

This commit is contained in:
Christopher Chalmers 2020-05-31 13:58:34 +01:00
parent 1a271465d6
commit f2ce033d30
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
#include <onnxruntime_c_api.h>
#include <onnxruntime/core/session/onnxruntime_c_api.h>

View File

@ -16,8 +16,7 @@ naersk.buildPackage {
root = filterSource ./.;
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
ONNXRUNTIME_LIB_DIR = "${onnxruntime}/lib";
ONNXRUNTIME_INCLUDE_DIR = "${onnxruntime.dev}/include/onnxruntime/core/session:${musl.dev}/include";
buildInputs = [ onnxruntime.dev pkg-config clang ];
doDoc = true;
doCheck = true;