anchor.diff:  , cmake, kodiPlain, libcec_platform, tinyxml
   , steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib }:
   
  -rec {
  +with stdenv.lib;
  +
  +let self = rec {
   
     pluginDir = "/share/kodi/addons";
  +
  +  kodi = kodiPlain;
  +
  +  # Convert derivation to a kodi module. Stolen from ../../../top-level/python-packages.nix
  +  toKodiPlugin = drv: drv.overrideAttrs(oldAttrs: {
  +    # Use passthru in order to prevent rebuilds when possible.
  +    passthru = (oldAttrs.passthru or {})// {
  +      kodiPluginFor = kodi;
  +      requiredKodiPlugins = requiredKodiPlugins drv.propagatedBuildInputs;
  +    };
  +  });
  +
  +  # Check whether a derivation provides a Kodi plugin.
  +  hasKodiPlugin = drv: drv ? kodiPluginFor && drv.kodiPluginFor == kodi;
  +
  +  # Get list of required Kodi plugins given a list of derivations.
  +  requiredKodiPlugins = drvs: let
  +      modules = filter hasKodiPlugin drvs;
  +    in unique (modules ++ concatLists (catAttrs "requiredKodiPlugins" modules));
  +
  +  kodiWithPlugins = func: callPackage ./wrapper.nix {
  +    inherit kodi;
  +    plugins = requiredKodiPlugins (func self);
  +  };
   
     kodi-platform = stdenv.mkDerivation rec {
       project = "kodi-platform";
  
positive.code:       '';
        maintainers = with maintainers; [ edwtjo ];
      };
    }).override {
      propagatedBuildInputs = [ steam ];
    };
  
    pdfreader = mkKodiPlugin rec {
  
negative.code:       sha256 = "142vvgs37asq5m54xqhjzqvgmb0xlirvm0kz6lxaqynp0vvgrkx2";
      };
  
      meta = {
        homepage = https://forum.kodi.tv/showthread.php?tid=85724;
        description = "A program launcher for Kodi";
        longDescription = ''
  