1{lib, stdenv, fetchurl, IOKit}:
2
3stdenv.mkDerivation rec {
4 pname = "libdvdcss";
5 version = "1.4.3";
6
7 buildInputs = lib.optional stdenv.isDarwin IOKit;
8
9 src = fetchurl {
10 url = "http://get.videolan.org/libdvdcss/${version}/${pname}-${version}.tar.bz2";
11 sha256 = "sha256-IzzJL13AHF06lvWzWCvn1c7lo1pS06CBWHRdPYYHAHk=";
12 };
13
14 meta = with 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}