depot/third_party/nixpkgs/pkgs/development/libraries/level-zero/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

40 lines
902 B
Nix

{ lib
, addDriverRunpath
, cmake
, fetchFromGitHub
, intel-compute-runtime
, openvino
, stdenv
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.18.3";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-ep9RYHnqmOEqfdFtYzOZnv0aWu4TA8JMyWOj0E2uSYk=";
};
nativeBuildInputs = [ cmake addDriverRunpath ];
postFixup = ''
addDriverRunpath $out/lib/libze_loader.so
'';
passthru.tests = {
inherit intel-compute-runtime openvino;
};
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;
platforms = platforms.linux;
maintainers = [ maintainers.ziguana ];
};
}