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 {
|
2007-12-31 18:55:13 +01:00
|
|
|
name = "vlc-0.8.6d";
|
2003-12-03 22:58:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-12-31 18:55:13 +01:00
|
|
|
url = http://download.videolan.org/pub/videolan/vlc/0.8.6d/vlc-0.8.6d.tar.bz2;
|
|
|
|
sha256 = "019jw9cp7fbmhbmlbwvjgpamxwx0rdajyxab2sbmh4n6v04fl266";
|
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";
|
2007-12-31 18:55:13 +01:00
|
|
|
homepage = http://www.videolan.org/vlc/;
|
2006-10-12 12:53:16 +02:00
|
|
|
};
|
2003-12-03 22:58:16 +01:00
|
|
|
}
|