anchor.diff:      ++ optional bs2bSupport        libbs2b
       ++ optional cacaSupport        libcaca
       ++ optional cmsSupport         lcms2
  -    ++ optional drmSupport         libdrm
  -    ++ optional dvdreadSupport     libdvdread
       ++ optional jackaudioSupport   libjack2
       ++ optional libpngSupport      libpng
       ++ optional openalSupport      openalSoft
       ++ optional pulseSupport       libpulseaudio
       ++ optional rubberbandSupport  rubberband
  +    ++ optional sambaSupport       samba
       ++ optional screenSaverSupport libXScrnSaver
       ++ optional sdl2Support        SDL2
  +    ++ optional sndioSupport       sndio
       ++ optional speexSupport       speex
       ++ optional theoraSupport      libtheora
       ++ optional vaapiSupport       libva
  
positive.code:              "http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
      sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
    };
    luaEnv = lua.withPackages(ps: with ps; [ luasocket ]);
  
  in stdenv.mkDerivation rec {
    pname = "mpv";
    version = "0.29.1";
  
    src = fetchFromGitHub {
      owner = "mpv-player";
      repo  = "mpv";
      rev    = "v${version}";
      sha256 = "138921kx8g6qprim558xin09xximjhsj9ss8b71ifg2m6kclym8m";
    };
  
    postPatch = ''
  
negative.code:   configureFlags = [
      "--enable-libmpv-shared"
      "--enable-manpage-build"
      "--disable-libmpv-static"
      "--disable-static-build"
      "--disable-build-date" # Purity
  