lol
1{lib, stdenv, fetchurl, libdvdcss}:
2
3stdenv.mkDerivation rec {
4 pname = "libdvdread";
5 version = "4.9.9";
6
7 src = fetchurl {
8 url = "http://dvdnav.mplayerhq.hu/releases/libdvdread-${version}.tar.xz";
9 sha256 = "d91275471ef69d488b05cf15c60e1cd65e17648bfc692b405787419f47ca424a";
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 = lib.licenses.gpl2;
24 maintainers = [ lib.maintainers.wmertens ];
25 platforms = lib.platforms.linux;
26 };
27}