anchor.diff:      version           = "6.0.0";
       rev               = "${version}-${rel}-Alpha-3";
       sha256            = "1xxn01mhkdnp10cqdr357wx77vyzfb5glqpqyg8m0skyi75aii59";
  -    nativeBuildInputs = [ autoreconfHook pkgconfig ];
  +    buildInputs       = [ libdvdcss ];
  +    nativeBuildInputs = [ cmake pkgconfig ];
  +    configureFlags    = [ "--with-libdvdcss" ];
  +    postPatch         = cmakeProtoPatch;
     };
   
   in stdenv.mkDerivation rec {
  
positive.code: { stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, makeWrapper
  , pkgconfig, cmake, gnumake, yasm, python2Packages
  , libgcrypt, libgpgerror, libunistring
  , boost, avahi, lame, autoreconfHook
  
negative.code:     nativeBuildInputs = [ cmake nasm pkgconfig ];
    };
  
    # We can build these externally but FindLibDvd.cmake forces us to build it
    # them, so we currently just use them for the src.
    libdvdcss = kodiDependency rec {
      name              = "libdvdcss";
      version           = "1.4.2";
      rev               = "${version}-${rel}-Beta-5";
      sha256            = "0j41ydzx0imaix069s3z07xqw9q95k7llh06fc27dcn6f7b8ydyl";
      buildInputs       = [ linuxHeaders ];
      nativeBuildInputs = [ cmake pkgconfig ];
      postPatch = ''
        rm -rf msvc
  
        substituteInPlace config.h.cm \
          --replace '#cmakedefine O_BINARY "''${O_BINARY}"' '#define O_BINARY 0'
      '';
      cmakeFlags = [
        "-DBUILD_SHARED_LIBS=1"
        "-DHAVE_LINUX_DVD_STRUCT=1"
      ];
    };
  
    libdvdnav = kodiDependency rec {
  