1{stdenv, fetchurl, IOKit}:
2
3stdenv.mkDerivation rec {
4 name = "libdvdcss-${version}";
5 version = "1.4.0";
6
7 buildInputs = stdenv.lib.optional stdenv.isDarwin IOKit;
8
9 src = fetchurl {
10 url = "http://get.videolan.org/libdvdcss/${version}/${name}.tar.bz2";
11 sha256 = "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290";
12 };
13
14 meta = with stdenv.lib; {
15 homepage = http://www.videolan.org/developers/libdvdcss.html;
16 description = "A library for decrypting DVDs";
17 license = licenses.gpl2;
18 platforms = with platforms; linux ++ darwin;
19 };
20}