depot/third_party/nixpkgs/pkgs/development/libraries/level-zero/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

39 lines
870 B
Nix

{ lib
, addDriverRunpath
, cmake
, fetchFromGitHub
, intel-compute-runtime
, openvino
, stdenv
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.17.42";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-IjYRzjC7CUPDdVBVoWSZtUQaY7QtSfS/Nej/2BdVziY=";
};
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;
maintainers = [ maintainers.ziguana ];
};
}