* vlc and required packages. Finally a good DVD player :-)
svn path=/nixpkgs/trunk/; revision=574
This commit is contained in:
13
pkgs/applications/video/vlc/builder.sh
Executable file
13
pkgs/applications/video/vlc/builder.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$x11 $wxGTK $libdvdcss $libdvdread $libdvdplay $mpeg2dec $a52dec $libmad $alsa"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $src || exit 1
|
||||
cd vlc-* || exit 1
|
||||
./configure --prefix=$out \
|
||||
--disable-ffmpeg \
|
||||
--enable-alsa \
|
||||
|| exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
29
pkgs/applications/video/vlc/default.nix
Normal file
29
pkgs/applications/video/vlc/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl, x11, wxGTK, libdvdcss, libdvdplay
|
||||
, mpeg2dec, a52dec, libmad, alsa}:
|
||||
|
||||
assert !isNull x11 && !isNull wxGTK && !isNull libdvdcss
|
||||
&& !isNull libdvdplay && !isNull mpeg2dec && !isNull a52dec
|
||||
&& !isNull libmad && !isNull alsa;
|
||||
assert libdvdplay.libdvdread.libdvdcss == libdvdcss;
|
||||
|
||||
derivation {
|
||||
name = "vlc-0.6.2";
|
||||
system = stdenv.system;
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://www.videolan.org/pub/videolan/vlc/0.6.2/vlc-0.6.2.tar.gz;
|
||||
md5 = "619a45ca360d4a7bf935cb5ffd69989d";
|
||||
};
|
||||
|
||||
stdenv = stdenv;
|
||||
x11 = x11;
|
||||
wxGTK = wxGTK;
|
||||
libdvdcss = libdvdcss;
|
||||
libdvdplay = libdvdplay;
|
||||
libdvdread = libdvdplay.libdvdread;
|
||||
mpeg2dec = mpeg2dec;
|
||||
a52dec = a52dec;
|
||||
libmad = libmad;
|
||||
alsa = alsa;
|
||||
}
|
||||
Reference in New Issue
Block a user