depot/third_party/nixpkgs/pkgs/development/libraries/level-zero/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

39 lines
870 B
Nix

{ lib
, addDriverRunpath
, cmake
, fetchFromGitHub
, intel-compute-runtime
, openvino
, stdenv
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.17.45";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-2uWZsy8aIV/ToDVuVxpyXoI1GbwZ9IxeLh+1hgjlfEM=";
};
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 ];
};
}