nixpkgs/pkgs/development/libraries/level-zero/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
763 B
Nix
Raw Normal View History

2023-03-15 08:29:15 +00:00
{ lib
, stdenv
, fetchFromGitHub
, addOpenGLRunpath
, cmake
}:
2022-11-13 17:55:03 +00:00
stdenv.mkDerivation rec {
pname = "level-zero";
2023-04-22 00:06:59 +00:00
version = "1.10.0";
2022-11-13 17:55:03 +00:00
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
2023-03-15 08:29:15 +00:00
rev = "refs/tags/v${version}";
2023-04-22 00:06:59 +00:00
hash = "sha256-4eDLtlVhJW3SCvDlVWcvAImiHoW02IgLfZ57gocexEQ=";
2022-11-13 17:55:03 +00:00
};
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";
2023-03-15 08:29:15 +00:00
changelog = "https://github.com/oneapi-src/level-zero/blob/v${version}/CHANGELOG.md";
2022-11-13 17:55:03 +00:00
license = licenses.mit;
maintainers = [ maintainers.ziguana ];
};
}