Swift support doesn’t seem to work with back-deployed dylibs, so set the
deployment target to 10.15 to force Swift to link against the system
Swift libraries. The change to use the Swift stdenv fixes the errors
reported in #214944.
mpv ships with a wrapper-script umpv that adds files to the queue of a currently
running mpv instance. This script does not take any options.
The desktop file for it simply substituted mpv with umpv in mpv.desktop,
resuting in an incorrect desktop file with `Exec=umpv --player-operation-mode=pseudo-gui -- %U`.
This resulted in umpv adding bogus files to the queue.
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
The ytdl_hook.lua supplied with the latest mpv release is incompatible
with the latest yt-dlp release, causing streaming some youtube formats
to fail. This applies an already-upstreamed fix.
Upstream issue: mpv-player/mpv#11392
Upstream patch: mpv-player/mpv#11398
xcrun is required for darwin to find its SDK location and for the version detection.
Co-authored-by: adisbladis <adisbladis@gmail.com>
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Co-authored-by: Atemu <atemu.main@gmail.com>
youtube-dl has been abandoned and is now unusable to stream a
youtube.com video.
The mpv team decided to move on with the yt-dlp fork[1]. However, they
did not cut a new mpv release yet.
Backporting the relevant commit and updating the wrapper to expose
yt-dlp instead of youtube-dl.
[1] https://github.com/mpv-player/mpv/pull/9209
samba support will be dropped in mpv upstream in its next release (see
3b8b7cb9d4).
Also, using it triggered segmentation faults when using luasocket.
Closes#88584
Inspired by `wrapNeovim`, write a wrapMpv Nix function that creates a
derivation that has all of the environment that was added if needed at
the unwrapped version.
Add derivations to all-packages.nix in an almost compatible way and make
`mpv-with-scripts` throw a message implying to switch to `wrapMpv` which
has an incompatible signature.
Add to vapoursynth a new passthru attribute `python3` that is used in
passed down to the wrapper to ensure ABI compatibility with
`PYTHONPATH`.
mpv uses lua without directly executing the "lua" binary, so prefixing
$PATH wasn't enough. Without this change, lua scripts were unable to
import luasocket.