nixpkgs/pkgs/applications/video/vlc/default.nix
Eelco Dolstra 6547796515 * VLC 0.8.6.
svn path=/nixpkgs/trunk/; revision=7518
2006-12-30 17:03:21 +00:00

34 lines
888 B
Nix

{ xvSupport ? true
, stdenv, fetchurl, perl, x11, libXv, wxGTK
, libdvdread, libdvdnav, libdvdcss
, zlib, mpeg2dec, a52dec, libmad, ffmpeg, alsa
}:
assert libdvdread.libdvdcss == libdvdcss;
assert xvSupport -> libXv != null;
stdenv.mkDerivation {
name = "vlc-0.8.6";
src = fetchurl {
url = http://download.videolan.org/pub/videolan/vlc/0.8.6/vlc-0.8.6.tar.bz2;
md5 = "77a275f3408c4c9feae451d4eae47f89";
};
buildInputs = [
perl x11 wxGTK
zlib mpeg2dec a52dec libmad ffmpeg alsa
libdvdread # <- for "simple" DVD playback
libdvdnav libdvdcss # <- for DVD playback with menus
(if xvSupport then libXv else null)
];
# Ensure that libdvdcss will be found without having to set LD_LIBRARY_PATH.
NIX_LDFLAGS = "-ldvdcss";
configureFlags = "--enable-alsa";
meta = {
description = "Cross-platform media player and streaming server";
};
}