@@ -23,10 +23,6 @@
2323, vaapiSupport ? false, libva ? null
2424}:
2525
26−# TODO: Wayland support
27−# TODO: investigate caca support
28−# TODO: investigate lua5_sockets bug
29−
3026assert x11Support -> (libX11 != null && libXext != null && mesa != null && libXxf86vm != null);
3127assert xineramaSupport -> (libXinerama != null && x11Support);
3228assert xvSupport -> (libXv != null && x11Support);
@@ -51,19 +47,21 @@ let
5147
5248 # Purity: Waf is normally downloaded by bootstrap.py, but
5349 # for purity reasons this behavior should be avoided.
50+ wafVersion = "1.8.12";
5451 waf = fetchurl {
55− url = http://ftp.waf.io/pub/release/waf-1.8.5;
56− sha256 = "0gh266076pd9fzwkycskyd3kkv2kds9613blpxmn9w4glkiwmmh5";
52+ urls = [ "http://ftp.waf.io/pub/release/waf-${wafVersion}"
53+ "http://waf.io/waf-${wafVersion}" ];
54+ sha256 = "12y9c352zwliw0zk9jm2lhynsjcf5jy0k1qch1c1av8hnbm2pgq1";
5755 };
5856in
5957
6058stdenv.mkDerivation rec {
61− name = "mpv-${version}";
62− version = "0.9.2";
59+
60+ name = "mpv-${meta.version}";
6361
6462 src = fetchurl {
65− url = "https://github.com/mpv-player/mpv/archive/v${version}.tar.gz";
66− sha256 = "0la7pmy75mq92kcrawdiw5idw6a46z7d15mlkgs0axyivdaqy560";
63+ url = "https://github.com/mpv-player/mpv/archive/v${meta.version}.tar.gz";
64+ sha256 = "1i3cinyjg1k7rp93cgf641zi8j98hl6qd6al9ws51n29qx22096z";
6765 };
6866
6967 patchPhase = ''
@@ -127,6 +125,7 @@ stdenv.mkDerivation rec {
127125 '';
128126
129127 meta = with stdenv.lib; {
128+ version = "0.12.0";
130129 description = "A media player that supports many video formats (MPlayer and mplayer2 fork)";
131130 homepage = http://mpv.io;
132131 license = licenses.gpl2Plus;
@@ -140,3 +139,6 @@ stdenv.mkDerivation rec {
140139 '';
141140 };
142141}
142+# TODO: Wayland support
143+# TODO: investigate caca support
144+# TODO: investigate lua5_sockets bug