2022-12-17 10:02:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, addOpenGLRunpath, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "level-zero";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.8.12";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oneapi-src";
|
|
|
|
repo = "level-zero";
|
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-87fnucPg8JygYo3QSuA6ll0acbHQvmWzNLEp4dqkAH8=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.oneapi.io/";
|
|
|
|
description = "oneAPI Level Zero Specification Headers and Loader";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ziguana ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|