@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchFromGitHub, makeWrapper
1+{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, makeWrapper
22, docutils, perl, pkgconfig, python3, which, ffmpeg
33, freefont_ttf, freetype, libass, libpthreadstubs
44, lua, lua5_sockets, libuchardet, libiconv ? null, darwin
@@ -90,7 +90,14 @@ in stdenv.mkDerivation rec {
9090 sha256 = "0746kmsg69675y5c70vn8imcr9d1zpjz97f27xr1vx00yjpd518v";
9191 };
9292
93− patchPhase = ''
93+ patches = [
94+ (fetchpatch {
95+ url = "https://github.com/mpv-player/mpv/commit/2ecf240b1cd20875991a5b18efafbe799864ff7f.patch";
96+ sha256 = "1sr0770rvhsgz8d7ysr9qqp4g9gwdhgj8g3rgnz90wl49lgrykhb";
97+ })
98+ ];
99+
100+ postPatch = ''
94101 patchShebangs ./TOOLS/
95102 '';
96103