MPV: update to 0.5.0

Many thanks matejc for the commit!
This commit is contained in:
AndersonTorres 2014-08-10 21:14:41 -03:00
parent dd9fcdce1d
commit 7a8cdc66a4
2 changed files with 14 additions and 11 deletions

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, fetchgit, freetype, pkgconfig, freefont_ttf, ffmpeg, libass
, lua, perl, libpthreadstubs
, lua5_sockets
, python3, docutils, which
, python3, docutils, which, lib
, x11Support ? true, libX11 ? null, libXext ? null, mesa ? null, libXxf86vm ? null
, xineramaSupport ? true, libXinerama ? null
, xvSupport ? true, libXv ? null
@ -20,8 +20,9 @@
# For screenshots
, libpngSupport ? true, libpng ? null
# for Youtube support
, quviSupport? false, libquvi ? null
, cacaSupport? false, libcaca ? null
, quviSupport ? false, libquvi ? null
, cacaSupport ? false, libcaca ? null
, vaapiSupport ? false, libva ? null
}:
assert x11Support -> (libX11 != null && libXext != null && mesa != null && libXxf86vm != null);
@ -57,11 +58,11 @@ in
stdenv.mkDerivation rec {
name = "mpv-${version}";
version = "0.4.1";
version = "0.5.0";
src = fetchurl {
url = "https://github.com/mpv-player/mpv/archive/v${version}.tar.gz";
sha256 = "0wqjyzw3kk854zj263k7jyykzfaz1g27z50aqrd26hylg8k135cn";
sha256 = "17mmc6xm8yir2p379h00q3wy7rplz2s31h6sxswmzbh72xf10g96";
};
buildInputs = with stdenv.lib;
@ -84,6 +85,7 @@ stdenv.mkDerivation rec {
++ optional quviSupport libquvi
++ optional sdl2Support SDL2
++ optional cacaSupport libcaca
++ optional vaapiSupport libva
;
nativeBuildInputs = [ python3 lua perl ];
@ -97,7 +99,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configurePhase = ''
python3 ${waf} configure --prefix=$out
python3 ${waf} configure --prefix=$out ${lib.optionalString vaapiSupport "--enable-vaapi"}
patchShebangs TOOLS
'';
@ -124,9 +126,9 @@ stdenv.mkDerivation rec {
};
}
# Heavily based on mplayer2 expression
# Many thanks @matejc for this update: 0.5.0 and vaapi (experimental)
# TODO: Wayland support
# TODO: investigate libquvi support
# TODO: investigate libquvi problems (related to Youtube support)
# TODO: investigate caca support
# TODO: investigate lua5_sockets bug

View File

@ -9273,9 +9273,10 @@ let
mpv = callPackage ../applications/video/mpv {
lua = lua5_1;
bs2bSupport = true;
quviSupport = true;
cacaSupport = true;
bs2bSupport = config.mpv.bs2bSupport or true;
quviSupport = config.mpv.quviSupport or false;
cacaSupport = config.mpv.cacaSupport or true;
vaapiSupport = config.mpv.vaapiSupport or false;
};
mrxvt = callPackage ../applications/misc/mrxvt { };