Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
992 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
addDriverRunpath,
cmake,
fetchFromGitHub,
intel-compute-runtime,
openvino,
stdenv,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.24.2";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
tag = "v${version}";
hash = "sha256-5QkXWuMFNsYNsW8lgo9FQIZ5NuLiRZCFKGWedpddi8Y=";
};
nativeBuildInputs = [
cmake
addDriverRunpath
];
postFixup = ''
addDriverRunpath $out/lib/libze_loader.so
'';
passthru = {
tests = {
inherit intel-compute-runtime openvino;
};
updateScript = nix-update-script { };
};
meta = {
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 = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.ziguana ];
};
}