From 69668e93d82945ed36f165407b4831276b6a1530 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Fri, 21 Feb 2020 08:54:53 +0100 Subject: [PATCH] kodi: fix build --- pkgs/applications/video/kodi/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/kodi/default.nix b/pkgs/applications/video/kodi/default.nix index 4fae93aa1a18..eef390d30ed8 100644 --- a/pkgs/applications/video/kodi/default.nix +++ b/pkgs/applications/video/kodi/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, fetchFromGitHub, autoconf, automake, libtool, makeWrapper, linuxHeaders +{ stdenv, lib, fetchpatch, fetchurl, fetchFromGitHub, autoconf, automake, libtool, makeWrapper, linuxHeaders , pkgconfig, cmake, gnumake, yasm, python2Packages , libgcrypt, libgpgerror, libunistring , boost, avahi, lame, autoreconfHook @@ -194,6 +194,15 @@ in stdenv.mkDerivation { autoconf automake libtool # still needed for some components. Check if that is the case with 19.0 ] ++ lib.optionals useWayland [ wayland-protocols ]; + patches = [ + # Adds missing cassert includes, fixing builds. This will be unnecessary + # after 18.6 is released (which will contain this patch) + (fetchpatch { + url = "https://github.com/xbmc/xbmc/commit/d5947e6733fd564edb68df91fd6d389d9fb82319.patch"; + sha256 = "1shlbsbfba3074wdyhl42vgin6jfzl7sy3zsvxaxkpx8g7my9jn2"; + }) + ]; + cmakeFlags = [ "-Dlibdvdcss_URL=${libdvdcss.src}" "-Dlibdvdnav_URL=${libdvdnav.src}"