anchor.diff:        bluez giflib glib harfbuzz lcms2 libpthreadstubs
         ffmpeg flatbuffers fmt fstrcmp rapidjson
         lirc
  -      # libdvdcss libdvdnav libdvdread
       ]
       ++ lib.optional x11Support [
         libX11 xorgproto libXt libXmu libXext.dev libXdmcp
  
positive.code: 
      cmakeFlags = [
        "-DAPP_RENDER_SYSTEM=${if useGbm then "gles" else "gl"}"
        "-Dlibdvdcss_URL=${libdvdcss.src}"
        "-Dlibdvdnav_URL=${libdvdnav.src}"
        "-Dlibdvdread_URL=${libdvdread.src}"
        "-DGIT_VERSION=${kodiReleaseDate}"
        "-DENABLE_EVENTCLIENTS=ON"
        "-DENABLE_INTERNAL_CROSSGUID=OFF"
  
negative.code: { stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, makeWrapper
  , pkg-config, cmake, gnumake, yasm, python3Packages
  , libgcrypt, libgpgerror, libunistring
  , boost, avahi, lame
  