summary refs log tree commit diff
path: root/pkgs/applications/video/mpv
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-11-03 12:53:06 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2016-11-03 12:54:26 +0100
commit12088f2ba142c6727e2d27341e0302e54b9b1c67 (patch)
treeef7a001eafd0c88ddbb65ee5108e394d11983d98 /pkgs/applications/video/mpv
parent0914796d46debb90c3732242fc7efc604d8d2fdd (diff)
downloadnixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar.gz
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar.bz2
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar.lz
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar.xz
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.tar.zst
nixpkgs-12088f2ba142c6727e2d27341e0302e54b9b1c67.zip
mpv: add support for drm, fixes vaapi
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r--pkgs/applications/video/mpv/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix
index b41eae41a5c..3ed58017fe2 100644
--- a/pkgs/applications/video/mpv/default.nix
+++ b/pkgs/applications/video/mpv/default.nix
@@ -31,6 +31,7 @@
 , libpngSupport      ? true,  libpng        ? null
 , youtubeSupport     ? true,  youtube-dl    ? null
 , vaapiSupport       ? true,  libva         ? null
+, drmSupport         ? true,  libdrm        ? null
 , vapoursynthSupport ? false, vapoursynth   ? null
 , jackaudioSupport   ? false, libjack2      ? null
 
@@ -65,6 +66,7 @@ assert youtubeSupport     -> available youtube-dl;
 assert vapoursynthSupport -> available vapoursynth;
 assert jackaudioSupport   -> available libjack2;
 assert vaapiSupport       -> available libva;
+assert drmSupport         -> available libdrm;
 
 let
   # Purity: Waf is normally downloaded by bootstrap.py, but
@@ -133,6 +135,7 @@ in stdenv.mkDerivation rec {
     ++ optional sdl2Support        SDL2
     ++ optional cacaSupport        libcaca
     ++ optional vaapiSupport       libva
+    ++ optional drmSupport         libdrm
     ++ optional vapoursynthSupport vapoursynth
     ++ optionals dvdnavSupport     [ libdvdnav libdvdnav.libdvdread ]
     ++ optionals x11Support        [ libX11 libXext mesa libXxf86vm ]