anchor.diff:  assert bluraySupport      -> available libbluray;
   assert bs2bSupport        -> available libbs2b;
   assert cacaSupport        -> available libcaca;
  -assert cddaSupport        -> all available [libcdio libcdio-paranoia];
  +assert cddaSupport        -> all available [ libcdio libcdio-paranoia ];
   assert cmsSupport         -> available lcms2;
  -assert drmSupport         -> available libdrm;
  +assert drmSupport         -> all available [ libdrm mesa ];
   assert dvdnavSupport      -> available libdvdnav;
  -assert dvdreadSupport     -> available libdvdread;
   assert jackaudioSupport   -> available libjack2;
   assert libpngSupport      -> available libpng;
   assert openalSupport      -> available openalSoft;
   assert pulseSupport       -> available libpulseaudio;
   assert rubberbandSupport  -> available rubberband;
   assert screenSaverSupport -> available libXScrnSaver;
  +assert sambaSupport       -> available samba;
   assert sdl2Support        -> available SDL2;
  +assert sndioSupport       -> available sndio;
   assert speexSupport       -> available speex;
   assert theoraSupport      -> available libtheora;
   assert vaapiSupport       -> available libva;
   assert vapoursynthSupport -> available vapoursynth;
   assert vdpauSupport       -> available libvdpau;
  +assert vulkanSupport      -> all available [ libplacebo shaderc vulkan-headers vulkan-loader ];
   assert waylandSupport     -> all available [ wayland wayland-protocols libxkbcommon ];
   assert x11Support         -> all available [ libGLU_combined libX11 libXext libXxf86vm libXrandr ];
   assert xineramaSupport    -> x11Support && available libXinerama;
   assert xvSupport          -> x11Support && available libXv;
   assert youtubeSupport     -> available youtube-dl;
  +assert zimgSupport        -> available zimg;
   
   let
     # Purity: Waf is normally downloaded by bootstrap.py, but
  
positive.code:   , libcdio-paranoia ? null
  
  , vulkanSupport ? stdenv.isLinux
    , shaderc ? null
    , vulkan-headers ? null
    , vulkan-loader ? null
  
  , alsaSupport        ? stdenv.isLinux, alsaLib       ? null
  , bluraySupport      ? true,           libbluray     ? null
  , bs2bSupport        ? true,           libbs2b       ? null
  , cacaSupport        ? true,           libcaca       ? null
  , cmsSupport         ? true,           lcms2         ? null
  , drmSupport         ? stdenv.isLinux, libdrm        ? null
  , dvdnavSupport      ? stdenv.isLinux, libdvdnav     ? null
  , dvdreadSupport     ? stdenv.isLinux, libdvdread    ? null
  , libpngSupport      ? true,           libpng        ? null
  , pulseSupport       ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
  , rubberbandSupport  ? stdenv.isLinux, rubberband ? null
  , screenSaverSupport ? true,           libXScrnSaver ? null
  , sdl2Support        ? true,           SDL2          ? null
  , speexSupport       ? true,           speex         ? null
  , theoraSupport      ? true,           libtheora     ? null
  , vaapiSupport       ? stdenv.isLinux, libva ? null
  , vdpauSupport       ? true,           libvdpau      ? null
  , xineramaSupport    ? stdenv.isLinux, libXinerama   ? null
  , xvSupport          ? stdenv.isLinux, libXv         ? null
  , youtubeSupport     ? true,           youtube-dl    ? null
  , archiveSupport     ? false,          libarchive    ? null
  , jackaudioSupport   ? false,          libjack2      ? null
  , openalSupport      ? false,          openalSoft    ? null
  
negative.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.30.0";
  
    src = fetchFromGitHub {
      owner  = "mpv-player";
      repo   = "mpv";
      rev    = "v${version}";
      sha256 = "17mxjgcfljlv6h0ik3332xsqbs0ybvk6dkwflyl0cjh15vl1iv6f";
    };
  
    postPatch = ''
  