1{
2 lib,
3 stdenv,
4 fetchurl,
5 libdvdcss,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "libdvdread";
10 version = "4.9.9";
11
12 src = fetchurl {
13 url = "http://dvdnav.mplayerhq.hu/releases/libdvdread-${version}.tar.xz";
14 sha256 = "d91275471ef69d488b05cf15c60e1cd65e17648bfc692b405787419f47ca424a";
15 };
16
17 buildInputs = [ libdvdcss ];
18
19 NIX_LDFLAGS = "-ldvdcss";
20
21 postInstall = ''
22 ln -s dvdread $out/include/libdvdread
23 '';
24
25 meta = {
26 homepage = "http://dvdnav.mplayerhq.hu/";
27 description = "Library for reading DVDs";
28 license = lib.licenses.gpl2;
29 maintainers = [ lib.maintainers.wmertens ];
30 platforms = lib.platforms.linux;
31 };
32}