anchor.diff:  assert vdpauSupport -> libvdpau != null;
   assert useWayland -> wayland != null && wayland-protocols != null && waylandpp != null && libxkbcommon != null;
   
  -# TODO for Kodi 18.0
  -# - check if dbus support PR has been merged and add dbus as a buildInput
  -
   let
  -  kodiReleaseDate = "20190129";
  -  kodiVersion = "18.1";
  +  kodiReleaseDate = "20190627";
  +  kodiVersion = "18.3";
     rel = "Leia";
   
     kodi_src = fetchFromGitHub {
       owner  = "xbmc";
       repo   = "xbmc";
       rev    = "${kodiVersion}-${rel}";
  -    sha256 = "1w26aqvzxv4c70gcd1vw1pldapsc2xcacwq9b7dqx5m44j0zx1dc";
  -  };
  +    sha256 = "18fbl5hs3aqccrn0m3x7hp95wlafjav0yvrwmb5q3gj24mwf6jld";
  +  };
  +
  +  cmakeProto = fetchurl {
  +    url = "https://raw.githubusercontent.com/pramsey/libght/ca9b1121c352ea10170636e170040e1af015bad1/cmake/modules/CheckPrototypeExists.cmake";
  +    sha256  = "1zai82gm5x55n3xvdv7mns3ja6a2k81x9zz0nk42j6s2yb0fkjxh";
  +  };
  +
  +  cmakeProtoPatch = ''
  +    # get rid of windows headers as they will otherwise be found first
  +    rm -rf msvc
  +
  +    cp ${cmakeProto} cmake/${cmakeProto.name}
  +    # we need to enable support for C++ for check_prototype_exists to do its thing
  +    substituteInPlace CMakeLists.txt --replace 'LANGUAGES C' 'LANGUAGES C CXX'
  +    if [ -f cmake/CheckHeadersSTDC.cmake ]; then
  +      sed -i cmake/CheckHeadersSTDC.cmake \
  +        -e '7iinclude(CheckPrototypeExists)'
  +    fi
  +  '';
   
     kodiDependency = { name, version, rev, sha256, ... } @attrs:
       let
  
positive.code:     version           = "6.0.0";
      rev               = "${version}-${rel}-Alpha-3";
      sha256            = "1xxn01mhkdnp10cqdr357wx77vyzfb5glqpqyg8m0skyi75aii59";
      nativeBuildInputs = [ autoreconfHook pkgconfig ];
    };
  
  in stdenv.mkDerivation rec {
  
negative.code:       makeWrapper
        which
        pkgconfig gnumake
        autoconf automake libtool # still needed for some components. Check if that is the case with 19.0
      ] ++ lib.optional useWayland [ wayland-protocols ];
  
      cmakeFlags = [
  