Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
992 B
Nix
48 lines
992 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|