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-07-29 00:23:58 +02:00
|
|
|
name = "vlc-0.8.6c";
|
2003-12-03 22:58:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-07-29 00:23:58 +02:00
|
|
|
url = http://download.videolan.org/pub/videolan/vlc/0.8.6c/vlc-0.8.6c.tar.bz2;
|
|
|
|
sha256 = "1bmngn66i527vw9g5xnhlpz64xl5gch3j3l6y5d727rcpmxlvhjz";
|
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
|
|
|
}
|