2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, addOpenGLRunpath
|
|
|
|
, cmake
|
|
|
|
}:
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "level-zero";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.13.5";
|
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}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-XpLbbcB8M63q+0Vj7NrERSXVIjy5KQrVZMvYijUbJhw=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|