depot/third_party/nixpkgs/pkgs/development/libraries/level-zero/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
763 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, addOpenGLRunpath
, cmake
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.15.8";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-n1dcsI2sLeB68HpI5oQ5p3zdAcSvnSY+qpHL9vp6FOk=";
};
nativeBuildInputs = [ cmake addOpenGLRunpath ];
postFixup = ''
addOpenGLRunpath $out/lib/libze_loader.so
'';
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 ];
};
}