Code change:
"--disable-libmpv-static" "--disable-static-build" "--disable-build-date" # Purity <del> (enableFeature archiveSupport  "libarchive") (enableFeature cddaSupport     "cdda") (enableFeature dvdnavSupport   "dvdnav") (enableFeature openalSupport   "openal") (enableFeature sdl2Support     "sdl2") (enableFeature sixelSupport    "sixel") (enableFeature vaapiSupport    "vaapi") (enableFeature waylandSupport  "wayland") (enableFeature stdenv.isLinux  "dvbin") </del> <ins> (lib.enableFeature archiveSupport  "libarchive") (lib.enableFeature cddaSupport     "cdda") (lib.enableFeature dvdnavSupport   "dvdnav") (lib.enableFeature openalSupport   "openal") (lib.enableFeature sdl2Support     "sdl2") (lib.enableFeature sixelSupport    "sixel") (lib.enableFeature vaapiSupport    "vaapi") (lib.enableFeature waylandSupport  "wayland") (lib.enableFeature stdenv.isLinux  "dvbin") </ins> ] # Disable whilst Swift isn't supported ++ lib.optional (!swiftSupport) "--disable-macos-cocoa-cb"; nativeBuildInputs = [ <del> addOpenGLRunpath docutils perl pkg-config python3 wafHook which ] ++ optional swiftSupport swift; </del> <ins> addOpenGLRunpath docutils perl pkg-config python3 wafHook which ] ++ lib.optionals swiftSupport [ swift ]; </ins> buildInputs = [ <del> ffmpeg freetype libass libpthreadstubs luaEnv libuchardet mujs ] ++ optional alsaSupport        alsa-lib ++ optional archiveSupport     libarchive ++ optional bluraySupport      libbluray ++ optional bs2bSupport        libbs2b ++ optional cacaSupport        libcaca ++ optional cmsSupport         lcms2 ++ optional jackaudioSupport   libjack2 ++ optional libpngSupport      libpng ++ optional openalSupport      openalSoft ++ optional pulseSupport       libpulseaudio ++ optional rubberbandSupport  rubberband ++ optional screenSaverSupport libXScrnSaver ++ optional sdl2Support        SDL2 ++ optional sixelSupport       libsixel ++ optional speexSupport       speex ++ optional theoraSupport      libtheora ++ optional vaapiSupport       libva ++ optional vapoursynthSupport vapoursynth ++ optional vdpauSupport       libvdpau ++ optional xineramaSupport    libXinerama ++ optional xvSupport          libXv ++ optional zimgSupport        zimg ++ optional stdenv.isDarwin    libiconv ++ optional stdenv.isLinux     nv-codec-headers ++ optionals cddaSupport       [ libcdio libcdio-paranoia ] ++ optionals drmSupport        [ libdrm mesa ] ++ optionals dvdnavSupport     [ libdvdnav libdvdnav.libdvdread ] ++ optionals waylandSupport    [ wayland wayland-protocols libxkbcommon ] ++ optionals x11Support        [ libX11 libXext libGLU libGL libXxf86vm libXrandr ] ++ optionals vulkanSupport     [ libplacebo shaderc vulkan-headers vulkan-loader ] ++ optionals stdenv.isDarwin   [ CoreFoundation Cocoa CoreAudio MediaPlayer ]; </del> <ins> ffmpeg freetype libass libpthreadstubs libuchardet luaEnv mujs ] ++ lib.optionals alsaSupport        [ alsa-lib ] ++ lib.optionals archiveSupport     [ libarchive ] ++ lib.optionals bluraySupport      [ libbluray ] ++ lib.optionals bs2bSupport        [ libbs2b ] ++ lib.optionals cacaSupport        [ libcaca ] ++ lib.optionals cddaSupport        [ libcdio libcdio-paranoia ] ++ lib.optionals cmsSupport         [ lcms2 ] ++ lib.optionals drmSupport         [ libdrm mesa ] ++ lib.optionals dvdnavSupport      [ libdvdnav libdvdnav.libdvdread ] ++ lib.optionals jackaudioSupport   [ libjack2 ] ++ lib.optionals libpngSupport      [ libpng ] ++ lib.optionals openalSupport      [ openalSoft ] ++ lib.optionals pulseSupport       [ libpulseaudio ] ++ lib.optionals rubberbandSupport  [ rubberband ] ++ lib.optionals screenSaverSupport [ libXScrnSaver ] ++ lib.optionals sdl2Support        [ SDL2 ] ++ lib.optionals sixelSupport       [ libsixel ] ++ lib.optionals speexSupport       [ speex ] ++ lib.optionals theoraSupport      [ libtheora ] ++ lib.optionals vaapiSupport       [ libva ] ++ lib.optionals vapoursynthSupport [ vapoursynth ] ++ lib.optionals vdpauSupport       [ libvdpau ] ++ lib.optionals vulkanSupport      [ libplacebo shaderc vulkan-headers vulkan-loader ] ++ lib.optionals waylandSupport     [ wayland wayland-protocols libxkbcommon ] ++ lib.optionals x11Support         [ libX11 libXext libGLU libGL libXxf86vm libXrandr ] ++ lib.optionals xineramaSupport    [ libXinerama ] ++ lib.optionals xvSupport          [ libXv ] ++ lib.optionals zimgSupport        [ zimg ] ++ lib.optionals stdenv.isLinux     [ nv-codec-headers ] ++ lib.optionals stdenv.isDarwin    [ libiconv ] ++ lib.optionals stdenv.isDarwin    [ CoreFoundation Cocoa CoreAudio MediaPlayer ]; </ins> enableParallelBuilding = true; <del> postBuild = optionalString stdenv.isDarwin '' </del> <ins> postBuild = lib.optionalString stdenv.isDarwin '' </ins> python3 TOOLS/osxbundle.py -s build/mpv '';

Related discussion:
text: <!-- Note that these are hard requirements --<!-- You can use the "Go to file" functionality on github to find the package Then you can go to the history for this package Find the latest "packagename: oldversion -newversion" commit The "newversion" is the the current version of the package --- <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- name: mpv <!-- The current version can be found easily with the same process than above for checking the master branch If an open PR is present for the package, take this version as the current one and link to the PR --current version: 0.33.1 desired version: 0.34.0 <!-- Search your package here: If no maintainer is listed for your package, tag the person that last updated the package --maintainers: Please tag this issue in your PR.