anchor.diff:      ++ optionals dvdnavSupport     [ libdvdnav libdvdnav.libdvdread ]
       ++ optionals waylandSupport    [ wayland wayland-protocols libxkbcommon ]
       ++ optionals x11Support        [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
  +    ++ optionals vulkanSupport     [ shaderc vulkan-headers vulkan-loader ]
       ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
         CoreFoundation Cocoa CoreAudio
       ]);
  
positive.code: , cddaSupport ? false
    , libcdio          ? null
    , libcdio-paranoia ? null
  
  , alsaSupport        ? true,  alsaLib       ? null
  , bluraySupport      ? true,  libbluray     ? null
  
negative.code:   '';
  
    # Ensure youtube-dl is available in $PATH for mpv
    wrapperFlags =
    let
      getPath  = type : "${luasocket}/lib/lua/${lua.luaversion}/?.${type};" +
                        "${luasocket}/share/lua/${lua.luaversion}/?.${type}";
  