-
-
Notifications
You must be signed in to change notification settings - Fork 15k
/
Copy pathdefault.nix
48 lines (41 loc) · 960 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
lib,
addOpenGLRunpath,
cmake,
fetchFromGitHub,
fmt_9,
spdlog,
stdenv,
substituteAll,
}:
stdenv.mkDerivation rec {
pname = "level-zero";
version = "1.16.15";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "level-zero";
rev = "refs/tags/v${version}";
hash = "sha256-J+XIqaV1ThD0RqqcyIkzvTWCkIztjkHzGzUbj0qojJs=";
};
patches = [
(substituteAll {
src = ./system-spdlog.diff;
spdlog = lib.getDev spdlog;
})
];
nativeBuildInputs = [
cmake
addOpenGLRunpath
];
buildInputs = [ fmt_9 ];
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 ];
};
}