depot/third_party/nixpkgs/pkgs/development/libraries/level-zero/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
870 B
Nix

{ lib
, addOpenGLRunpath
, cmake
, fetchFromGitHub
, intel-compute-runtime
, openvino
, stdenv
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.17.19";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-WfnoYLBBXzYQ35Og6UgGFv6ebLMBos49JvJcZANRhd8=";
};
nativeBuildInputs = [ cmake addOpenGLRunpath ];
postFixup = ''
addOpenGLRunpath $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 ];
};
}