2023-03-15 08:29:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, addOpenGLRunpath
|
|
|
|
, cmake
|
|
|
|
}:
|
2022-11-13 17:55:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "level-zero";
|
2023-04-22 00:06:59 +00:00
|
|
|
version = "1.10.0";
|
2022-11-13 17:55:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oneapi-src";
|
|
|
|
repo = "level-zero";
|
2023-03-15 08:29:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-22 00:06:59 +00:00
|
|
|
hash = "sha256-4eDLtlVhJW3SCvDlVWcvAImiHoW02IgLfZ57gocexEQ=";
|
2022-11-13 17:55:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
2023-02-28 16:44:51 +00:00
|
|
|
homepage = "https://github.com/oneapi-src/level-zero";
|
2023-03-15 08:29:15 +00:00
|
|
|
changelog = "https://github.com/oneapi-src/level-zero/blob/v${version}/CHANGELOG.md";
|
2022-11-13 17:55:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ziguana ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|