git.iko.soy/typeable/nixpkgs
on master help sign in
mpv: fix build with libva 2
commit745be0cb61447c182bd6d1ee53faf159996d7075 authorOrivej Desh <orivej@gmx.fr> dateMon 18 Dec 2017, 16:43 (9 years ago) parentb29c78d
1 file changed+9−2
pkgs/applications/video/mpv/default.nix+9−2
pkgs/applications/video/mpv/default.nix+9−2
@@ -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