anchor.diff:  , libpngSupport      ? true,           libpng        ? null
   , pulseSupport       ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
   , rubberbandSupport  ? stdenv.isLinux, rubberband    ? null
  -# NOTE: samba support should be removed on the next mpv release, see also:
  -# https://github.com/NixOS/nixpkgs/pull/89145#issuecomment-636424362
  -# Please remove this line on the next mpv release.
  -, sambaSupport       ? false,          samba         ? null
   , screenSaverSupport ? true,           libXScrnSaver ? null
   , sdl2Support        ? true,           SDL2          ? null
  -, sndioSupport       ? true,           sndio         ? null
   , speexSupport       ? true,           speex         ? null
   , swiftSupport       ? false,          swift         ? null
   , theoraSupport      ? true,           libtheora     ? null
  
positive.code:     ++ 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
  
negative.code: 
  in stdenv.mkDerivation rec {
    pname = "mpv";
    version = "0.33.0";
  
    src = fetchFromGitHub {
      owner  = "mpv-player";
      repo   = "mpv";
      rev    = "v${version}";
      sha256 = "sha256-3l32qQBpvWVjbLp5CZtO039oDQeH7C/cNAKtJxrzlRk=";
    };
  
    postPatch = ''
  