2004-05-01 18:17:56 +00:00
|
|
|
{ xvSupport ? true
|
2006-06-29 12:41:25 +00:00
|
|
|
, stdenv, fetchurl, perl, x11, libXv, wxGTK
|
2006-06-29 23:48:19 +00:00
|
|
|
, libdvdread, libdvdnav, libdvdcss
|
2006-06-29 12:41:25 +00:00
|
|
|
, zlib, mpeg2dec, a52dec, libmad, ffmpeg, alsa
|
|
|
|
}:
|
2003-12-03 21:58:16 +00:00
|
|
|
|
2006-06-29 23:48:19 +00:00
|
|
|
assert libdvdread.libdvdcss == libdvdcss;
|
2004-05-01 18:17:56 +00:00
|
|
|
assert xvSupport -> libXv != null;
|
2003-12-03 21:58:16 +00:00
|
|
|
|
2004-03-29 17:23:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2008-06-25 15:01:04 +00:00
|
|
|
name = "vlc-0.8.6h";
|
2003-12-03 21:58:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-25 15:01:04 +00:00
|
|
|
url = http://download.videolan.org/pub/videolan/vlc/0.8.6h/vlc-0.8.6h.tar.bz2;
|
|
|
|
sha256 = "08bj6ndxj0f7jdsif43535qyavpy13wni93z7c2790i2d748gvah";
|
2003-12-03 21:58:16 +00:00
|
|
|
};
|
|
|
|
|
2004-04-02 15:36:14 +00:00
|
|
|
buildInputs = [
|
2006-06-29 23:48:19 +00:00
|
|
|
perl x11 wxGTK
|
2006-06-29 12:41:25 +00:00
|
|
|
zlib mpeg2dec a52dec libmad ffmpeg alsa
|
2006-06-29 23:48:19 +00:00
|
|
|
libdvdread # <- for "simple" DVD playback
|
|
|
|
libdvdnav libdvdcss # <- for DVD playback with menus
|
2008-06-25 15:01:04 +00:00
|
|
|
] ++ stdenv.lib.optional xvSupport libXv;
|
2004-04-02 15:36:14 +00:00
|
|
|
|
2006-06-29 23:48:19 +00:00
|
|
|
# Ensure that libdvdcss will be found without having to set LD_LIBRARY_PATH.
|
|
|
|
NIX_LDFLAGS = "-ldvdcss";
|
|
|
|
|
2006-06-29 12:41:25 +00:00
|
|
|
configureFlags = "--enable-alsa";
|
2006-10-12 10:53:16 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross-platform media player and streaming server";
|
2007-12-31 17:55:13 +00:00
|
|
|
homepage = http://www.videolan.org/vlc/;
|
2006-10-12 10:53:16 +00:00
|
|
|
};
|
2003-12-03 21:58:16 +00:00
|
|
|
}
|