2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
33 lines
763 B
Nix
33 lines
763 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, addOpenGLRunpath
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "level-zero";
|
|
version = "1.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "level-zero";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jf1sKFfUmeNbLtmawKISmLQK2/95XvSg40se9IEKMT0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake addOpenGLRunpath ];
|
|
|
|
postFixup = ''
|
|
addOpenGLRunpath $out/lib/libze_loader.so
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|