1{stdenv, fetchurl, libdvdcss}:
2
3stdenv.mkDerivation rec {
4 name = "libdvdread-${version}";
5 version = "5.0.3";
6
7 src = fetchurl {
8 url = "http://get.videolan.org/libdvdread/${version}/${name}.tar.bz2";
9 sha256 = "0ayqiq0psq18rcp6f5pz82sxsq66v0kwv0y55dbrcg68plnxy71j";
10 };
11
12 buildInputs = [libdvdcss];
13
14 NIX_LDFLAGS = "-ldvdcss";
15
16 postInstall = ''
17 ln -s dvdread $out/include/libdvdread
18 '';
19
20 meta = {
21 homepage = http://dvdnav.mplayerhq.hu/;
22 description = "A library for reading DVDs";
23 license = stdenv.lib.licenses.gpl2;
24 maintainers = [ stdenv.lib.maintainers.wmertens ];
25 platforms = with stdenv.lib.platforms; linux ++ darwin;
26 };
27}