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