1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 11
11
libX11 ,
12
12
libdrm ,
13
13
libgbm ,
14
+ nativeContextSupport ? stdenv . hostPlatform . isLinux ,
14
15
vaapiSupport ? ! stdenv . hostPlatform . isDarwin ,
15
16
libva ,
17
+ vulkanSupport ? stdenv . hostPlatform . isLinux ,
18
+ vulkan-headers ,
19
+ vulkan-loader ,
16
20
gitUpdater ,
17
21
} :
18
22
@@ -32,6 +36,10 @@ stdenv.mkDerivation rec {
32
36
libepoxy
33
37
]
34
38
++ lib . optionals vaapiSupport [ libva ]
39
+ ++ lib . optionals vulkanSupport [
40
+ vulkan-headers
41
+ vulkan-loader
42
+ ]
35
43
++ lib . optionals stdenv . hostPlatform . isLinux [
36
44
libGLU
37
45
libX11
@@ -46,9 +54,14 @@ stdenv.mkDerivation rec {
46
54
python3
47
55
] ;
48
56
49
- mesonFlags = [
50
- ( lib . mesonBool "video" vaapiSupport )
51
- ] ;
57
+ mesonFlags =
58
+ [
59
+ ( lib . mesonBool "video" vaapiSupport )
60
+ ( lib . mesonBool "venus" vulkanSupport )
61
+ ]
62
+ ++ lib . optionals nativeContextSupport [
63
+ ( lib . mesonOption "drm-renderers" "amdgpu-experimental,msm" )
64
+ ] ;
52
65
53
66
passthru = {
54
67
updateScript = gitUpdater {
0 commit comments