2022-04-27 00:21:19 +02:00
|
|
|
{ stdenv }:
|
2021-12-18 16:23:14 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "onnx-runtime";
|
2023-04-03 09:45:35 +02:00
|
|
|
version = "1.14.1";
|
2021-12-18 16:23:14 +01:00
|
|
|
# phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
src = builtins.fetchTarball {
|
2023-04-03 09:45:35 +02:00
|
|
|
url = "https://github.com/microsoft/onnxruntime/releases/download/v1.14.1/onnxruntime-linux-x64-gpu-1.14.1.tgz";
|
|
|
|
sha256 = "1hcxyhldxy5q0x50f96ni3p9v1n5qljarx7fvs63r6sk6j4yr2kv";
|
2021-12-18 16:23:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-04-03 09:45:35 +02:00
|
|
|
mkdir -p $out/include/onnxruntime/core/session
|
|
|
|
mkdir -p $out/include/onnxruntime/core/providers/cpu
|
|
|
|
mkdir -p $out/include/onnxruntime/core/providers/gpu
|
|
|
|
|
|
|
|
cp -r lib $out/
|
|
|
|
cp -r include/ $out/
|
2021-12-18 16:23:14 +01:00
|
|
|
'';
|
|
|
|
}
|