about summary refs log tree commit diff
path: root/pkgs/applications/video/vlc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/video/vlc/default.nix')
-rw-r--r--pkgs/applications/video/vlc/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix
index f4540a882f534..8faa28cd43622 100644
--- a/pkgs/applications/video/vlc/default.nix
+++ b/pkgs/applications/video/vlc/default.nix
@@ -1,10 +1,12 @@
-{ stdenv, fetchurl, x11, wxGTK, libdvdcss, libdvdplay
+{ xvSupport ? true
+, stdenv, fetchurl, x11, libXv, wxGTK, libdvdcss, libdvdplay
 , mpeg2dec, a52dec, libmad, alsa}:
 
 assert x11 != null && wxGTK != null && libdvdcss != null
   && libdvdplay != null && mpeg2dec != null && a52dec != null
   && libmad != null && alsa != null;
 assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
+assert xvSupport -> libXv != null;
 
 stdenv.mkDerivation {
   name = "vlc-0.7.1";
@@ -17,6 +19,7 @@ stdenv.mkDerivation {
   buildInputs = [
     x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread
     mpeg2dec a52dec libmad alsa
+    (if xvSupport then libXv else null)
   ];
 
   configureFlags = "--disable-ffmpeg --enable-alsa";