2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, addOpenGLRunpath
|
|
|
|
, cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchFromGitHub
|
2024-06-05 15:53:02 +00:00
|
|
|
, intel-compute-runtime
|
|
|
|
, openvino
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "level-zero";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.17.6";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oneapi-src";
|
|
|
|
repo = "level-zero";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-vtijha0nXHEp5oLnmdtbD80Qa2dgMykZXhQ2yfbk+mY=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit intel-compute-runtime openvino;
|
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
2023-03-08 16:32:21 +00:00
|
|
|
homepage = "https://github.com/oneapi-src/level-zero";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/oneapi-src/level-zero/blob/v${version}/CHANGELOG.md";
|
2022-12-17 10:02:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ziguana ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|