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-06-24 12:26:52 +02:00
|
|
|
name = "vlc-0.8.5";
|
2003-12-03 22:58:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/vlc-0.8.5.tar.bz2;
|
2006-06-29 14:41:25 +02:00
|
|
|
md5 = "16bb5bf87ed94879a8eb7b0ff9b4f16f";
|
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
|
|
|
}
|