anchor.diff:      "--disable-libmpv-static"
       "--disable-static-build"
       "--disable-build-date" # Purity
  +    (enableFeature archiveSupport "libarchive")
  +    (enableFeature dvdreadSupport "dvdread")
  +    (enableFeature dvdnavSupport "dvdnav")
       (enableFeature vaapiSupport "vaapi")
       (enableFeature waylandSupport "wayland")
     ];
  
positive.code:     ++ optional vaapiSupport       libva
      ++ optional drmSupport         libdrm
      ++ optional vapoursynthSupport vapoursynth
      ++ optionals dvdnavSupport     [ libdvdnav libdvdnav.libdvdread ]
      ++ optionals x11Support        [ libX11 libXext mesa libXxf86vm ]
      ++ optionals waylandSupport    [ wayland libxkbcommon ];
  
negative.code:     ln -s ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mpv/subfont.ttf
      # Ensure youtube-dl is available in $PATH for MPV
      wrapProgram $out/bin/mpv \
        --add-flags "--scripts=${concatStringsSep "," scripts}" \
    '' + optionalString youtubeSupport ''
        --prefix PATH : "${youtube-dl}/bin" \
    '' + optionalString vapoursynthSupport ''
  