git.iko.soy/typeable/nixpkgs
on master help sign in
mpv: added optional wayland support
commit0bcf42aed390ca645738ff35a3e9f0e9669cdd6d authorThéophane Hufschmitt <theophane.hufschmitt@polytechnique.org> dateThu 3 Mar 2016, 11:38 (11 years ago) parentc2a2c2e
1 file changed+6−3
pkgs/applications/video/mpv/default.nix+6−3
pkgs/applications/video/mpv/default.nix+6−3
@@ -21,6 +21,7 @@
2121, youtubeSupport ? true, youtube-dl ? null
2222, cacaSupport ? true, libcaca ? null
2323, vaapiSupport ? false, libva ? null
24+, waylandSupport ? false, wayland ? null, libxkbcommon ? null
2425}:
2526
2627assert x11Support -> (libX11 != null && libXext != null && mesa != null && libXxf86vm != null);
@@ -41,6 +42,7 @@ assert bs2bSupport -> libbs2b != null;
4142assert libpngSupport -> libpng != null;
4243assert youtubeSupport -> youtube-dl != null;
4344assert cacaSupport -> libcaca != null;
45+assert waylandSupport -> (wayland != null && libxkbcommon != null);
4446
4547let
4648 inherit (stdenv.lib) optional optionals optionalString;
@@ -77,7 +79,8 @@ stdenv.mkDerivation rec {
7779 "--enable-manpage-build"
7880 "--disable-build-date" # Purity
7981 "--enable-zsh-comp"
80− ] ++ optional vaapiSupport "--enable-vaapi";
82+ ] ++ optional vaapiSupport "--enable-vaapi"
83+ ++ optional waylandSupport "--enable-wayland";
8184
8285 configurePhase = ''
8386 python ${waf} configure --prefix=$out $configureFlags
@@ -105,7 +108,8 @@ stdenv.mkDerivation rec {
105108 ++ optional youtubeSupport youtube-dl
106109 ++ optional sdl2Support SDL2
107110 ++ optional cacaSupport libcaca
108− ++ optional vaapiSupport libva;
111+ ++ optional vaapiSupport libva
112+ ++ optionals waylandSupport [ wayland libxkbcommon ];
109113
110114 enableParallelBuilding = true;
111115
@@ -139,6 +143,5 @@ stdenv.mkDerivation rec {
139143 '';
140144 };
141145}
142−# TODO: Wayland support
143146# TODO: investigate caca support
144147# TODO: investigate lua5_sockets bug