about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi
diff options
context:
space:
mode:
authorgeorgewhewell <georgerw@gmail.com>2019-12-15 15:05:57 +0000
committergeorgewhewell <georgerw@gmail.com>2019-12-15 15:05:57 +0000
commit55fb0c955b4e2e89012dbb7c1665f536426f4826 (patch)
tree8114da9c797fc1c894a8fbcff4b205b0ba738bf8 /pkgs/applications/video/kodi
parent3140fa89c51233397f496f49014f6b23216667c2 (diff)
downloadnixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar.gz
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar.bz2
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar.lz
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar.xz
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.tar.zst
nixlib-55fb0c955b4e2e89012dbb7c1665f536426f4826.zip
kodi: add option for GBM backend
Diffstat (limited to 'pkgs/applications/video/kodi')
-rw-r--r--pkgs/applications/video/kodi/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/video/kodi/default.nix b/pkgs/applications/video/kodi/default.nix
index 8edc99c5f028..8246212280a2 100644
--- a/pkgs/applications/video/kodi/default.nix
+++ b/pkgs/applications/video/kodi/default.nix
@@ -30,6 +30,7 @@
 , vdpauSupport ? true, libvdpau ? null
 , useWayland ? false, wayland ? null, wayland-protocols ? null
 , waylandpp ?  null, libxkbcommon ? null
+, useGbm ? false, mesa ? null, libinput ? null
 }:
 
 assert dbusSupport  -> dbus != null;
@@ -183,6 +184,11 @@ in stdenv.mkDerivation {
       wayland waylandpp
       # Not sure why ".dev" is needed here, but CMake doesn't find libxkbcommon otherwise
       libxkbcommon.dev
+    ]
+    ++ lib.optional useGbm [
+      libxkbcommon.dev
+      mesa.dev
+      libinput.dev
     ];
 
     nativeBuildInputs = [
@@ -206,6 +212,9 @@ in stdenv.mkDerivation {
     ] ++ lib.optional useWayland [
       "-DCORE_PLATFORM_NAME=wayland"
       "-DWAYLAND_RENDER_SYSTEM=gl"
+    ] ++ lib.optional useGbm [
+      "-DCORE_PLATFORM_NAME=gbm"
+      "-DGBM_RENDER_SYSTEM=gles"
     ];
 
     enableParallelBuilding = true;