diff options
author | Peter Hoeg <peter@hoeg.com> | 2020-03-29 13:49:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 13:49:23 +0800 |
commit | 4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad (patch) | |
tree | 27f3863f372f9fd953e3a1b34e80c42b06873481 /pkgs/applications | |
parent | fd708a3fe0405e2b101dc37ddf17cd7bbfab9746 (diff) | |
parent | 55fb0c955b4e2e89012dbb7c1665f536426f4826 (diff) | |
download | nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar.gz nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar.bz2 nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar.lz nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar.xz nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.tar.zst nixpkgs-4e3d5eb1f7a67ab7db19b240d58f70fa208d7bad.zip |
Merge pull request #75697 from georgewhewell/add-kodi-gbm
kodi: add option for GBM backend
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/video/kodi/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/video/kodi/default.nix b/pkgs/applications/video/kodi/default.nix index 875ef8d52dd..fcb6ed4860b 100644 --- a/pkgs/applications/video/kodi/default.nix +++ b/pkgs/applications/video/kodi/default.nix @@ -31,6 +31,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; @@ -185,6 +186,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 = [ @@ -207,6 +213,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; |