2004-05-01 20:17:56 +02:00
|
|
|
{ xvSupport ? true
|
|
|
|
, stdenv, fetchurl, x11, libXv, wxGTK, libdvdcss, libdvdplay
|
2003-12-03 22:58:16 +01:00
|
|
|
, mpeg2dec, a52dec, libmad, alsa}:
|
|
|
|
|
2004-03-29 12:25:25 +02:00
|
|
|
assert x11 != null && wxGTK != null && libdvdcss != null
|
|
|
|
&& libdvdplay != null && mpeg2dec != null && a52dec != null
|
|
|
|
&& libmad != null && alsa != null;
|
2003-12-03 22:58:16 +01:00
|
|
|
assert libdvdplay.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 {
|
2004-04-02 17:36:14 +02:00
|
|
|
name = "vlc-0.7.1";
|
2003-12-03 22:58:16 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2004-04-02 17:36:14 +02:00
|
|
|
url = http://download.videolan.org/pub/videolan/vlc/0.7.1/vlc-0.7.1.tar.gz;
|
|
|
|
md5 = "faa5e3162a3e9b3a3d8c3dcc06f70911";
|
2003-12-03 22:58:16 +01:00
|
|
|
};
|
|
|
|
|
2004-04-02 17:36:14 +02:00
|
|
|
buildInputs = [
|
|
|
|
x11 wxGTK libdvdcss libdvdplay libdvdplay.libdvdread
|
|
|
|
mpeg2dec a52dec libmad alsa
|
2004-05-01 20:17:56 +02:00
|
|
|
(if xvSupport then libXv else null)
|
2004-04-02 17:36:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = "--disable-ffmpeg --enable-alsa";
|
2003-12-03 22:58:16 +01:00
|
|
|
}
|