bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
39 lines
869 B
Nix
39 lines
869 B
Nix
{ lib
|
|
, addOpenGLRunpath
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, intel-compute-runtime
|
|
, openvino
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "level-zero";
|
|
version = "1.17.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "level-zero";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-vtijha0nXHEp5oLnmdtbD80Qa2dgMykZXhQ2yfbk+mY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|