anchor.diff:  { stdenv, fetchurl, fetchFromGitHub, fetchpatch, makeWrapper
  -, docutils, perl, pkgconfig, python3, which, ffmpeg
  +, docutils, perl, pkgconfig, python3, which, ffmpeg_4
   , freefont_ttf, freetype, libass, libpthreadstubs
   , lua, luasocket, libuchardet, libiconv ? null, darwin
   
  
positive.code:   ];
  
    buildInputs = [
      ffmpeg freetype libass libpthreadstubs
      lua luasocket libuchardet
    ] ++ optional alsaSupport        alsaLib
      ++ optional xvSupport          libXv
  
negative.code:   };
  in stdenv.mkDerivation rec {
    name = "mpv-${version}";
    version = "0.28.2";
  
    src = fetchFromGitHub {
      owner = "mpv-player";
      repo  = "mpv";
      rev    = "v${version}";
      sha256 = "0bldxhqjz7z9fgvx4k40l49awpay17fscp8ypswb459yicy8npmg";
    };
  
    postPatch = ''
      patchShebangs ./TOOLS/
  