@@ -1,9 +1,11 @@
1−{ stdenv, fetchurl }:
1+{stdenv, fetchurl, IOKit}:
22
33stdenv.mkDerivation rec {
44 name = "libdvdcss-${version}";
55 version = "1.4.0";
66
7+ buildInputs = stdenv.lib.optional stdenv.isDarwin IOKit;
8+
79 src = fetchurl {
810 url = "http://get.videolan.org/libdvdcss/${version}/${name}.tar.bz2";
911 sha256 = "0nl45ifc4xcb196snv9d6hinfw614cqpzcqp92dg43c0hickg290";
@@ -13,6 +15,6 @@ stdenv.mkDerivation rec {
1315 homepage = http://www.videolan.org/developers/libdvdcss.html;
1416 description = "A library for decrypting DVDs";
1517 license = licenses.gpl2;
16− platforms = platforms.linux;
18+ platforms = with platforms; linux ++ darwin;
1719 };
1820}