fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, addOpenGLRunpath
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, fmt_9
|
|
, intel-compute-runtime
|
|
, openvino
|
|
, spdlog
|
|
, stdenv
|
|
, substituteAll
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "level-zero";
|
|
version = "1.17.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "level-zero";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ha/xpp+scLau+cTIyixwo8TgAJrb2DVboGDPWibxb08=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./system-spdlog.diff;
|
|
spdlog = lib.getDev spdlog;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
buildInputs = [ fmt_9 ];
|
|
|
|
postFixup = ''
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit intel-compute-runtime openvino;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
|
homepage = "https://github.com/oneapi-src/level-zero";
|
|
changelog = "https://github.com/oneapi-src/level-zero/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ziguana ];
|
|
};
|
|
}
|
|
|